public void Awake() { LoadTexture("GameData/kOS/GFX/font_sml.png", ref fontImage); LoadTexture("GameData/kOS/GFX/monitor_minimal.png", ref terminalImage); var gObj = new GameObject("texteditPopup", typeof(KOSTextEditPopup)); DontDestroyOnLoad(gObj); popupEditor = (KOSTextEditPopup)gObj.GetComponent(typeof(KOSTextEditPopup)); popupEditor.SetUniqueId(uniqueId + 5); }
public void Awake() { LoadTexture("GameData/kOS/GFX/font_sml.png", ref fontImage); LoadTexture("GameData/kOS/GFX/monitor_minimal.png", ref terminalImage); LoadTexture("GameData/kOS/GFX/resize-button.png", ref resizeButtonImage); LoadTexture("GameData/kOS/GFX/network-zigzag.png", ref networkZigZagImage); LoadAudio(); tinyToggleStyle = new GUIStyle(HighLogic.Skin.toggle) { fontSize = 10 }; var gObj = new GameObject("texteditPopup", typeof(KOSTextEditPopup)); DontDestroyOnLoad(gObj); popupEditor = (KOSTextEditPopup)gObj.GetComponent(typeof(KOSTextEditPopup)); popupEditor.SetUniqueId(UniqueId + 5); }
public void Awake() { LoadTexture("GameData/kOS/GFX/monitor_minimal.png", ref terminalImage); LoadTexture("GameData/kOS/GFX/monitor_minimal_frame.png", ref terminalFrameImage); LoadTexture("GameData/kOS/GFX/monitor_minimal_frame_active.png", ref terminalFrameActiveImage); LoadTexture("GameData/kOS/GFX/resize-button.png", ref resizeButtonImage); LoadTexture("GameData/kOS/GFX/network-zigzag.png", ref networkZigZagImage); LoadTexture("GameData/kOS/GFX/brightness-button.png", ref brightnessButtonImage); LoadTexture("GameData/kOS/GFX/font-width-button.png", ref fontWidthButtonImage); LoadTexture("GameData/kOS/GFX/font-height-button.png", ref fontHeightButtonImage); LoadTexture("GameData/kOS/GFX/font_sml.png", ref fontImage); LoadFontArray(); LoadAudio(); tinyToggleStyle = new GUIStyle(HighLogic.Skin.toggle) { fontSize = 10 }; var gObj = new GameObject( "texteditPopup", typeof(KOSTextEditPopup) ); DontDestroyOnLoad(gObj); popupEditor = (KOSTextEditPopup)gObj.GetComponent(typeof(KOSTextEditPopup)); popupEditor.SetUniqueId(UniqueId + 5); customSkin = BuildPanelSkin(); GameEvents.onHideUI.Add (OnHideUI); GameEvents.onShowUI.Add (OnShowUI); soundMaker = gameObject.AddComponent<Sound.SoundMaker>(); }
public void Awake() { LoadTexture("GameData/kOS/GFX/font_sml.png", ref fontImage); LoadTexture("GameData/kOS/GFX/monitor_minimal.png", ref terminalImage); LoadTexture("GameData/kOS/GFX/resize-button.png", ref resizeButtonImage); LoadTexture("GameData/kOS/GFX/network-zigzag.png", ref networkZigZagImage); LoadAudio(); tinyToggleStyle = new GUIStyle(HighLogic.Skin.toggle) { fontSize = 10 }; var gObj = new GameObject( "texteditPopup", typeof(KOSTextEditPopup) ); DontDestroyOnLoad(gObj); popupEditor = (KOSTextEditPopup)gObj.GetComponent(typeof(KOSTextEditPopup)); popupEditor.SetUniqueId(UniqueId + 5); }