예제 #1
0
        /// <summary>
        /// 对话框添加按钮
        /// </summary>
        /// <param name="whichDialog">对话框</param>
        /// <param name="buttonText">按钮文本</param>
        /// <param name="hotkey">快捷键</param>
        /// <returns>返回添加的按钮</returns>
        public static button DialogAddButton(dialog whichDialog, @string buttonText, integer hotkey)
        {
            button btn = new button {
                text = buttonText, hotkey = hotkey
            };

            whichDialog.items.Add(btn);
            return(btn);
        }
        public static @event TriggerRegisterDialogEvent(trigger whichTrigger, dialog whichDialog)
        {
            @event triEvent = new @event()
            {
                sourceDialog = whichDialog
            };

            whichTrigger.events.Add(triEvent);
            return(triEvent);
        }
예제 #3
0
 public static boolean SaveDialogHandle(hashtable table, integer parentKey, integer childKey, dialog whichDialog)
 {
     table.Add(parentKey.ToString("x8") + childKey.ToString("x8"), whichDialog);
     return(true);
 }
예제 #4
0
 public static void DialogDisplay(player whichPlayer, dialog whichDialog, boolean flag)
 {
     whichDialog.displayed[whichPlayer] = flag;
 }
예제 #5
0
 public static button DialogAddQuitButton(dialog whichDialog, boolean doScoreScreen, @string buttonText, integer hotkey)
 {
     throw new NotImplementedException();
 }
예제 #6
0
 public static void DialogSetMessage(dialog whichDialog, @string messageText)
 {
     whichDialog.message = messageText;
 }
예제 #7
0
 /// <summary>
 /// 清空对话框
 /// </summary>
 /// <param name="whichDialog"></param>
 public static void DialogClear(dialog whichDialog)
 {
     whichDialog.items.Clear();
 }
예제 #8
0
 /// <summary>
 /// 摧毁对话框
 /// </summary>
 /// <param name="whichDialog"></param>
 public static void DialogDestroy(dialog whichDialog)
 {
     RuntimeRecorder.Recorder.Dialogs.Remove(whichDialog);
     whichDialog.destroyed = true;
 }
예제 #9
0
        /// <summary>
        /// 创建对话框
        /// </summary>
        /// <returns>返回创建的对话框</returns>
        public static dialog DialogCreate()
        {
            dialog d = new dialog();

            return(d);
        }