public GameOverMessage(WinType winType, Position[] winningSequence) { this.type = MessageType.gameOver; this.winType = winType; this.winningSequence = winningSequence; }
public static extern void glk_stylehint_set(WinType wintype, Style styl, StyleHint hint, int val);
public static extern void glk_stylehint_clear(WinType wintype, Style styl, StyleHint hint);
public static extern winid_t glk_window_open(winid_t split, WinMethod method, uint size, WinType wintype, uint rock);
public static void OpenDownLoadUI(int monID, DelegateLoadFinished callBack, DelegateCloes close = null, WinType type = WinType.WT_One) { if (_instance == null) { UIDownModel modeWin = UIDownModel.CreateWin(type); if (modeWin != null) { _instance = modeWin; if (type == WinType.WT_One) { if (TeamUI.mInstance != null) { modeWin.SetWinRoot(TeamUI.mInstance.m_teamView.gameObject); } else { modeWin.SetWinRoot(DBUIController.mDBUIInstance._TopRoot); } } else { modeWin.SetWinRoot(DBUIController.mDBUIInstance._TopRoot); } } } _instance.SetDownloadModel(monID, callBack); _instance.m_EventCloes = close; }
public static void OpenDownLoadUI(int monID, DelegateLoadFinished callBack, Vector3 pos, DelegateCloes close = null, WinType type = WinType.WT_One) { OpenDownLoadUI(monID, callBack, close, type); _instance.transform.localPosition = pos; }
//[RegistryPermission(SecurityAction.Assert, Read = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions")] internal static T GetLocalMachineRegistryValue <T>(string path, string keyName, T defaultValue, WinType winType) { T local = default(T); RegistryKey key = null; //try //{ key = RegistryKey64.OpenSubKey(Registry.LocalMachine, path, winType); //try //{ //} //catch //{ // key = Registry.LocalMachine.OpenSubKey(path, false); //} //key = Registry.LocalMachine.OpenSubKey(path); if (key == null) { return(defaultValue); } object obj2 = key.GetValue(keyName); if (obj2 is T) { return((T)obj2); } local = defaultValue; //} //catch //{ // key.Close(); //} return(local); }
/// <summary> /// Erstellt eine neue Instanz der Klasse mit den angegebenen Paramrtern /// </summary> /// <param name="title">Der Titel des Fensters</param> /// <param name="handle">Das Fensterhandle des Fensters</param> /// <param name="classe">Die Klasse/Art des Fensters</param> /// <param name="isVisible">True wenn der Fenster minimiert ist</param> /// <param name="pos">Die Position des Fensters auf dem Bildschirm</param> /// <param name="size">Die Größe des Fensters</param> public Window(string title, IntPtr handle, string classe, bool isVisible, ProcessListDemo.Declarations.Point pos, ProcessListDemo.Declarations.Point size, WinType type) { this.winTitle = title; this.winHandle = handle; this.winClass = classe; this.winVisible = isVisible; this.winPos = pos; this.winSize = size; this.winType = type; }