示例#1
0
文件: Start.c 项目: att/uwin
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;
}
示例#2
0
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;
}
示例#3
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();
}
示例#4
0
			//////////////////////////////////////
			// 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;
}
示例#5
0
文件: Main.cpp 项目: penspanic/muindo
void Main::Process()
{
	ButtonUpdate();
	InfoUpdate();
	if ((StartState == ButtonClicked) && (Button[0].top >= SCREEN_Y))
	{
		SoundManager()->Pause(CommonPtr()->GetMainBGM());
		SceneManager()->ChangeScene(new Intro);
	}
}
示例#6
0
void StartButtonUpdate(char *title, int state)
{
  if (title != NULL) ConsoleMessage("Updating StartTitle not supported yet...\n");
  ButtonUpdate(StartButton, title, state);
}