Gam3Master Posted June 4, 2019 Posted June 4, 2019 Where can i edit thismenu? can find it in interface.u https://postimg.cc/FfkrGFx0
FrozenWarrior Posted June 4, 2019 Posted June 4, 2019 (edited) Sysstring to change the letters on the button and to change the after message systemmsg. Unless U mean the button appearance which I'm not sure Edited June 4, 2019 by FrozenWarrior
SGER@fjs Posted June 4, 2019 Posted June 4, 2019 On 6/4/2019 at 12:58 PM, Gam3Master said: Where can i edit thismenu? can find it in interface.u https://postimg.cc/FfkrGFx0 Expand nwindow.dll
StinkyMadness Posted June 4, 2019 Posted June 4, 2019 You have to make new class inside the interface.u function OnShow() { HideWindow("LoginFunctionWnd"); } and add your own button with interface.xdathttp://prntscr.com/nxno2p 1 3
Gam3Master Posted June 5, 2019 Author Posted June 5, 2019 On 6/4/2019 at 9:03 PM, StinkyMadness said: You have to make new class inside the interface.u function OnShow() { HideWindow("LoginFunctionWnd"); } and add your own button with interface.xdathttp://prntscr.com/nxno2p Expand Ty for response. in which .uc file I must add that lines?
StinkyMadness Posted June 5, 2019 Posted June 5, 2019 On 6/5/2019 at 4:51 AM, Gam3Master said: Ty for response. in which .uc file I must add that lines? Expand You can create your own one.. Here its an exemple: class LoginMenuWnd extends UICommonAPI; function OnShow() { HideWindow("LoginFunctionWnd"); } function OnClickButton(string a_ButtonID) { switch (a_ButtonID) { case "btnOption": onOption(); break; case "btnCredit": SetUIState("CreditState"); break; case "btnReplay": SetUIState("ReplaySelectState"); break; default: } } function onOption() { if (IsShowWindow("OptionWnd")) { PlayConsoleSound(IFST_WINDOW_CLOSE); HideWindow("OptionWnd"); } else { PlayConsoleSound(IFST_WINDOW_OPEN); ShowWindowWithFocus("OptionWnd"); } } defaultproperties { }
Gam3Master Posted June 5, 2019 Author Posted June 5, 2019 On 6/5/2019 at 5:18 AM, StinkyMadness said: You can create your own one.. Here its an exemple: class LoginMenuWnd extends UICommonAPI; function OnShow() { HideWindow("LoginFunctionWnd"); } function OnClickButton(string a_ButtonID) { switch (a_ButtonID) { case "btnOption": onOption(); break; case "btnCredit": SetUIState("CreditState"); break; case "btnReplay": SetUIState("ReplaySelectState"); break; default: } } function onOption() { if (IsShowWindow("OptionWnd")) { PlayConsoleSound(IFST_WINDOW_CLOSE); HideWindow("OptionWnd"); } else { PlayConsoleSound(IFST_WINDOW_OPEN); ShowWindowWithFocus("OptionWnd"); } } defaultproperties { } Expand I created new class, wrote there your code and compiled. But no change.
Gam3Master Posted June 5, 2019 Author Posted June 5, 2019 I don't need the new menu. I just need to remove the old one. I still need xdat?
StinkyMadness Posted June 10, 2019 Posted June 10, 2019 if you don't want to add xdat side use the "HideWindow("LoginFunctionWnd");" inside another .uc that load on start client.
Gam3Master Posted June 10, 2019 Author Posted June 10, 2019 On 6/10/2019 at 7:50 PM, StinkyMadness said: if you don't want to add xdat side use the "HideWindow("LoginFunctionWnd");" inside another .uc that load on start client. Expand Solved.Thankyou. Close the topic,
Recommended Posts