Now do you think this will be hard with iGlass? lol
And now here is the code to test button :
Etc ...
IGlass is perfect for game menus with alpha smoothed (or animated) button
or little utility but if you want code 3DS Max :) use Max
GUI :)
But_NewGame=IGL_PushButton.Create(False,"New Game",Button_Px,Button_Py,Button_Width) But_HighScores=IGL_PushButton.Create(False,"High Scores",Button_Px,Button_Py+30,Button_Width) But_Options=IGL_PushButton.Create(False,"Options",Button_Px,Button_Py+60,Button_Width) But_Credits=IGL_PushButton.Create(False,"Credits",Button_Px,Button_Py+90,Button_Width) But_Quit=IGL_PushButton.Create(False,"Exit",Button_Px,Button_Py+120,Button_Width)
And now here is the code to test button :
If But_NewGame.ClickGadget() Then If Game_PlaySound=True Then SFX_PlaySound("NewGame",True) EndIf ResetScore() CreateLevel(1) Game_ModeCurrent=Game_ModePlay EndIf If But_HighScores.ClickGadget() Then If Game_PlaySound=True Then SFX_PlaySound("HighScores",True) EndIf Win_HighScores.Hide=False EndIf
Etc ...
IGlass is perfect for game menus with alpha smoothed (or animated) button
or little utility but if you want code 3DS Max :) use Max
GUI :)