void SetEscapeMenuState(EscapeMenuState state) { LanguageCi language = game.language; escapemenustate = state; WidgetsClear(); if (state == EscapeMenuState.Main) { MainSet(); MakeSimpleOptions(fontEscapeMenu, 50); } else if (state == EscapeMenuState.Options) { OptionsSet(); MakeSimpleOptions(fontEscapeMenu, 50); } else if (state == EscapeMenuState.Graphics) { GraphicsSet(); MakeSimpleOptions(fontEscapeMenu, 50); } else if (state == EscapeMenuState.Other) { OtherSet(); MakeSimpleOptions(fontEscapeMenu, 50); } else if (state == EscapeMenuState.Keys) { KeysSet(); FontCi fontKeys = FontCi.Create("Arial", 12, 0); int textheight = 20; MakeSimpleOptions(fontKeys, textheight); } }
public ModGuiEscapeMenu() { one = 1; fonts = new string[4]; fonts[0] = "Nice"; fonts[1] = "Simple"; fonts[2] = "BlackBackground"; fonts[3] = "Default"; fontsLength = 4; fontValues = new int[4]; fontValues[0] = 0; fontValues[1] = 1; fontValues[2] = 2; fontValues[3] = 3; widgets = new Button[1024]; keyselectid = -1; fontEscapeMenu = FontCi.Create("Arial", 20, 0); }