Beispiel #1
0
 /// <summary>
 /// ログを登録する
 /// </summary>
 /// <param name="log"></param>
 public void AddWorkLog(WorkLog log)
 {
     if (m_recodeWorkLog)
     {
         m_tempLogList.Add(log);
     }
 }
Beispiel #2
0
        /// <summary>
        /// タスクログを表示
        /// </summary>
        /// <param name="creatureModel"></param>
        /// <param name="buttonAmount"></param>
        /// <param name="stateString"></param>
        void OnGUITaskLog(WorkLog workLog, int buttonAmount, string stateString, int width)
        {
            var creatureModel = workLog.target as CreatureModel;

            if (creatureModel == null)
            {
                return;
            }

            if (GUI.Button(new Rect(IMAGE_X - 5, (buttonAmount * BUTTON_HEIGHT_INTARVAL), width + 5, IMAGE_SIZE + 5), ""))
            {
                workLog.m_deleteFlag = true;
            }

            GUI.DrawTexture(new Rect(IMAGE_X, (buttonAmount * BUTTON_HEIGHT_INTARVAL), IMAGE_SIZE, IMAGE_SIZE), ExtraEditMod.m_creatureSprite[creatureModel.metadataId].texture);

            //状態表示
            GUI.Label(new Rect(IMAGE_X + IMAGE_SIZE + UI_MARGIN, (buttonAmount * BUTTON_HEIGHT_INTARVAL), width, 20), "職員:" + workLog.actor._agentName.GetName());
            GUI.Label(new Rect(IMAGE_X + IMAGE_SIZE + UI_MARGIN, (buttonAmount * BUTTON_HEIGHT_INTARVAL) + 20, width, 20), "作業:" + workLog.skillInfo.name);
            //GUI.Label(new Rect(IMAGE_X + IMAGE_SIZE + UI_MARGIN, (buttonAmount * BUTTON_HEIGHT_INTARVAL) + 40, width, 20), "状態:" + workLog.actor.GetState().ToString());
            GUI.Label(new Rect(IMAGE_X + IMAGE_SIZE + UI_MARGIN, (buttonAmount * BUTTON_HEIGHT_INTARVAL) + 40, width, 20), "指示時間:" + workLog.timer);
            GUI.Label(new Rect(IMAGE_X + IMAGE_SIZE + UI_MARGIN, (buttonAmount * BUTTON_HEIGHT_INTARVAL) + 60, width, 20), stateString);
        }