Ejemplo n.º 1
0
        /// <summary>
        /// Add UI buttons to be rendered
        /// </summary>
        /// <param name="baseClickableUIObject"></param>
        public void InitializeMinimapButtons(
            MapObjects.UIObject.UIObject objUIBtMin,
            MapObjects.UIObject.UIObject objUIBtMax,
            MapObjects.UIObject.UIObject objUIBtBig, MapObjects.UIObject.UIObject objUIBtMap)
        {
            this.objUIBtMin = objUIBtMin;
            this.objUIBtMax = objUIBtMax;
            if (objUIBtBig != null)
            {
                this.objUIBtBig = objUIBtBig;
            }
            this.objUIBtMap = objUIBtMap;

            uiButtons.Add(objUIBtMin);
            uiButtons.Add(objUIBtMax);
            if (objUIBtBig != null)
            {
                uiButtons.Add(objUIBtBig);
            }
            uiButtons.Add(objUIBtMap);

            objUIBtMax.SetButtonState(UIObjectState.Disabled); // start maximised

            objUIBtMin.ButtonClickReleased += ObjUIBtMin_ButtonClickReleased;
            objUIBtMax.ButtonClickReleased += ObjUIBtMax_ButtonClickReleased;
            if (objUIBtBig != null)
            {
                objUIBtBig.ButtonClickReleased += ObjUIBtBig_ButtonClickReleased;
            }
            objUIBtMap.ButtonClickReleased += ObjUIBtMap_ButtonClickReleased;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// On 'BtMax' clicked
 /// </summary>
 /// <param name="sender"></param>
 private void ObjUIBtMax_ButtonClickReleased(MapObjects.UIObject.UIObject sender)
 {
     objUIBtMin.SetButtonState(UIObjectState.Normal);
     objUIBtMax.SetButtonState(UIObjectState.Disabled);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// On 'BtMap' clicked
 /// </summary>
 /// <param name="sender"></param>
 private void ObjUIBtMap_ButtonClickReleased(MapObjects.UIObject.UIObject sender)
 {
 }
 /// <summary>
 /// Add UI buttons to be rendered
 /// </summary>
 /// <param name="baseClickableUIObject"></param>
 public void AddUIButtons(MapObjects.UIObject.UIObject baseClickableUIObject)
 {
     uiButtons.Add(baseClickableUIObject);
 }