コード例 #1
0
 public BuildingUI(BuildingCollectionUI ctx, IBuilding building, RectangleShape shape, Vector2f pos, MapTypes type)
 {
     Shape = shape ?? throw new ArgumentNullException(nameof(shape));
     CtxBuildingCollectionUi = ctx;
     Pos           = pos;
     BuildingCtx   = building;
     Menu          = new ContextualMenu(this);
     DrawMenuState = false;
     MapTypes      = type;
 }
コード例 #2
0
 public ContextualMenuButton(ContextualMenu ctxContextualMenu, Vector2f menuPos)
 {
     CtxContextualMenu   = ctxContextualMenu;
     MenuPos             = menuPos;
     ButtonRectShapeList = ButtonBuildingType();
 }