int StartButtonUpdate(const char *title, int state) { #if 0 if (title != NULL) ConsoleMessage("Updating StartTitle not supported yet...\n"); ButtonUpdate(StartButton, title, state); #else ButtonUpdate(StartButton, NULL, state); #endif return StartButton->needsupdate; }
int StartButtonUpdate(const char *title, int index, int state) { int i=0; StartAndLaunchButtonItem *tempPtr = First_Start_Button; #if 0 if (title != NULL) ConsoleMessage("Updating StartTitle not supported yet...\n"); if(index != -1) { for(i=0; i<index; i++) tempPtr = tempPtr->tail; ButtonUpdate(tempPtr->buttonItem, title, state); } else while(tempPtr != NULL) { ButtonUpdate(tempPtr->buttonItem, title, state); tempPtr = tempPtr->tail; } #else if (!First_Start_Button) { return 0; } if(index != -1) { for(i=0; i<index; i++) tempPtr = tempPtr->tail; ButtonUpdate(tempPtr->buttonItem, title, state); } else while(tempPtr != NULL) { ButtonUpdate(tempPtr->buttonItem, title, state); tempPtr = tempPtr->tail; } #endif tempPtr = First_Start_Button; while(tempPtr != NULL) { if (tempPtr->buttonItem->needsupdate) return 1; tempPtr = tempPtr->tail; } return 0; }
void TalkingBoxUpdate(u32 time) { Time = time; ButtonUpdate(BtnPlay, Time); ButtonUpdate(BtnSelect, Time); if (CurrentState == None) { StateSwitch(Sleep); } if (BtnPlay->state == Pressed && BtnPlay->stateChangeTime + 2000 < Time) { StateSwitch(Sleep); } StateUpdate(); }
////////////////////////////////////// // Handle WM_CREATE ////////////////////////////////////// BOOL Main_Create(HWND hwnd, CREATESTRUCT FAR* lpCreateStruct) { fight = TRUE; joySetCapture(hwnd, JOYSTICKID1, TimeRate, FALSE); Reset((HWNDdll)hwnd); ButtonUpdate((HWNDdll)hwnd, (HINST)hInst); return TRUE; }
void Main::Process() { ButtonUpdate(); InfoUpdate(); if ((StartState == ButtonClicked) && (Button[0].top >= SCREEN_Y)) { SoundManager()->Pause(CommonPtr()->GetMainBGM()); SceneManager()->ChangeScene(new Intro); } }
void StartButtonUpdate(char *title, int state) { if (title != NULL) ConsoleMessage("Updating StartTitle not supported yet...\n"); ButtonUpdate(StartButton, title, state); }