コード例 #1
0
ファイル: Desktop.cs プロジェクト: 207h2Flogintvg/LGame
		private int RemoveComponent(LContainer container, LComponent comp) {
			int removed = container.Remove(comp);
			LComponent[] components = container.GetComponents();
			int i = 0;
			while (removed == -1 && i < components.Length - 1) {
				if (components[i].IsContainer()) {
					removed = this
							.RemoveComponent((LContainer) components[i], comp);
				}
				i++;
			}
	
			return removed;
		}
コード例 #2
0
        internal void SetContainer(LContainer container)
        {
            this.parent = container;

            this.ValidatePosition();
        }
コード例 #3
0
ファイル: Desktop.cs プロジェクト: 207h2Flogintvg/LGame
		public void SetContentPane(LContainer pane) {
			pane.SetBounds(0, 0, this.GetWidth(), this.GetHeight());
			this.contentPane = pane;
			this.SetDesktop(this.contentPane);
		}
コード例 #4
0
ファイル: Desktop.cs プロジェクト: 207h2Flogintvg/LGame
		internal void ValidateContainer(LContainer container) {
			LComponent[] components = container.GetComponents();
			int size = container.GetComponentCount();
			for (int i = 0; i < size; i++) {
				if (components[i].IsContainer()) {
					this.ValidateContainer((LContainer) components[i]);
				}
			}
		}
コード例 #5
-1
 public virtual void Dispose()
 {
     this.isClose = true;
     this.desktop.SetComponentStat(this, false);
     if (this.parent != null)
     {
         this.parent.Remove(this);
     }
     this.desktop = Desktop.EMPTY_DESKTOP;
     this.input = null;
     this.parent = null;
     if (imageUI != null)
     {
         for (int i = 0; i < imageUI.Length; i++)
         {
             imageUI[i].Destroy();
             imageUI[i] = null;
         }
         this.imageUI = null;
     }
     if (background != null)
     {
         this.background.Destroy();
         this.background = null;
     }
     this.selected = false;
     this.visible = false;
 }
コード例 #6
-1
ファイル: Desktop.cs プロジェクト: 207h2Flogintvg/LGame
		private Desktop() {
			this.contentPane = new LPanel(0, 0, 1, 1);
			this.input = null;
			this.SetDesktop(this.contentPane);
		}
コード例 #7
-1
ファイル: Desktop.cs プロジェクト: 207h2Flogintvg/LGame
		public Desktop(LInput input, int width, int height) {
			this.contentPane = new LPanel(0, 0, width, height);
			this.input = input;
			this.SetDesktop(this.contentPane);
		}