#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <windows.h>
#include <winsock.h>
#include <richedit.h>
#include "NanoMud.h"
Include dependency graph for nanomud-credits.c:

Go to the source code of this file.
Functions | |
| void | CreateCreditBox (void) |
| LRESULT CALLBACK | CreditProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
Variables | |
| char | Copy_Right1 [] |
| char | Credits [] |
| HFONT | hf |
|
|
Definition at line 86 of file nanomud-credits.c. References CreditProc, CreditProcedure(), g_hInst, GiveError(), and MudCredit. Referenced by WindowProcedure(). 00087 {
00088 if (IsWindow(MudCredit))
00089 return;
00090 MudCredit = CreateWindowEx(WS_EX_TOPMOST,"Credit","NanoMud Credits", DS_3DLOOK |WS_POPUP | WS_SYSMENU,
00091 200,200,600,400,0,0,g_hInst,0);
00092 CreditProc = (WNDPROC) SetWindowLong(MudCredit, GWL_WNDPROC, (LONG)CreditProcedure);
00093 ShowWindow(MudCredit, SW_SHOW);
00094 if (!IsWindow(MudCredit))
00095 {
00096 GiveError("Unable to create credit dialog box.",0);
00097 return;
00098 }
00099 return;
00100 }
|
Here is the call graph for this function:

|
||||||||||||||||||||
|
Definition at line 102 of file nanomud-credits.c. References Copy_Right1, Credits, FormatText(), g_hInst, GiveError(), ID_Credit_OK_BUTTON, MudCredit, and TRUE. Referenced by CreateCreditBox(). 00103 {
00104 switch (message)
00105 {
00106 case WM_CREATE:
00107 {
00108 HWND Credit_Ok_Button;
00109 HWND Credit_Edit;
00110 HWND Credit_About;
00111 RECT creditrect;
00112
00113 GetClientRect(MudCredit, &creditrect);
00114 Credit_Edit = CreateWindowEx(WS_EX_CLIENTEDGE, "RICHEDIT","",
00115 WS_CHILD|WS_VISIBLE|WS_VSCROLL|ES_MULTILINE|ES_READONLY|ES_CENTER,0,200,600,200,hwnd, NULL,g_hInst,0);
00116 ShowWindow(Credit_Edit,SW_SHOW);
00117
00118 FormatText(Credit_Edit);
00119 int len= SendMessage(Credit_Edit,WM_GETTEXTLENGTH,0,0);
00120 SendMessage(Credit_Edit,EM_SETSEL,len,len);
00121 SendMessage(Credit_Edit,EM_REPLACESEL,strlen(Credits),(LPARAM)(LPCSTR)Credits);
00122 Credit_About = CreateWindowEx(WS_EX_CLIENTEDGE, "STATIC","",
00123 WS_CHILD|SS_CENTER, 2,2, 596,196, hwnd,NULL, g_hInst,0);
00124 ShowWindow(Credit_About, SW_SHOW);
00125
00126
00127 Credit_Ok_Button = CreateWindowEx(WS_EX_CLIENTEDGE, "BUTTON", "",
00128 BS_TEXT|WS_CHILD, 520,176,70,20,hwnd,(HMENU)ID_Credit_OK_BUTTON,g_hInst,0);
00129 SendMessage(Credit_Ok_Button, WM_SETTEXT, strlen("Ok"), (LPARAM)(LPCSTR)"Ok");
00130 ShowWindow(Credit_Ok_Button,SW_SHOW);
00131 SendMessage(Credit_About, WM_SETTEXT, strlen(Copy_Right1), (LPARAM)(LPCSTR)Copy_Right1);
00132
00133
00134
00135
00136 }
00137 break;
00138 // case WM_DESTROY:
00139 // MudCredit = 0;
00140 // break;
00141 case WM_COMMAND:
00142 switch(LOWORD(wParam))
00143 {
00144 case ID_Credit_OK_BUTTON:
00145 if (!DestroyWindow(MudCredit))
00146 GiveError("Unable to call Destroywindow(MudCredit); please report this error.", TRUE);
00147
00148 break;
00149 }
00150 break;
00151
00152
00153 default:
00154 return DefWindowProc (hwnd, message, wParam, lParam);
00155 }
00156
00157 return 0;
00158 }
|
Here is the call graph for this function:

|
|
Initial value: "NanoMud Version 1.0\nCopyright 2003, Michael D. Hayes.\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 2\n" "of the License, or (at your option) any later version.\n\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" Definition at line 31 of file nanomud-credits.c. Referenced by CreditProcedure(). |
|
|
Initial value: "Credits in no particular order:\n" "\n" "Chris Misztal (Cadius) AKA: Copy and paste Bitch\n" " Chris did a huge job for me by getting all the\n" " stuff I need for the scripting of NanoMUD. We\n" " owe him a big thanks for his work.\n" " Mail: Cadius@nanobit.net\n" "\n" "Justin Salsibury AKA: Gnomy\n" " Justin and I first came up with the concept of \n" " NanoMUD. And for that, I owe him a big thanks. He\n" " also kept me company during those late nights..I \n" " mean..err, nevermind.\n" " Mail: justin@nanobit.net\n" "\n" "Drax aka: Zmud whore\n" " Drax..well, what can I say? He convinced me to use\n" " zMud style scripting. Did I mention he's the GOD of\n" " scripting? :)\n" " Mail: unknown\n" "\n" "Isadore Schwartz aka: Izzy the drug dealer\n" " Izzy..man, he's like a brother, and he's helped me out\n" " on some concepts/coding of NanoMUD. Big thanks to him.\n" " Mail: isadore_schwartz@verminasia.org\n" "\n" "Stef Shelton aka: Secksy\n" " That's all that can be said about her. She's put up with\n" " me. That's all that matters.\n" " Mail: unknown\n" "\n" "Alex...Uhh, whatever his last name is\n" " He's also a coder of NanoMUD; joined at a later date in development.\n" " But he's done a good job thusfar and deserves the credit.\n" " Mail: unknown\n" "\n" "Me aka: hey, you!\n" " heh.\n" " Mail: Mike@nanobit.net\n" "\n" Definition at line 42 of file nanomud-credits.c. Referenced by CreditProcedure(). |
|
|
|
1.3.9.1