void Awake() { m_Skin = LMS_GuiBaseUtils.GetDarkSkin(); InitLabels(); InitButtons(); Owner.AddChild(AimbotButton); }
/* @RENDER ORDER! * 1 LABEL * 2 BUTTON * 3 BOX */ void Awake() { InitLabels(); InitButtons(); InitOverlays(); Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig() { Rect = new Rect(100f, 100f, 800f, 500f) }, 2000, null); Owner.SetTexture((int)E_Texture.IDLE, LMS_Textures.GetCache("MAIN_MENU_TEX")); Owner.primary = true; Owner.Draggable = true; Owner.AddChild(AutomationLabel); Owner.AddChild(EspLabel); Owner.AddChild(Automation); Owner.AddChild(Esp); Owner.AddChild(Creditslabel); Owner.AddChild(CopsLogo); Owner.AddChild(Misc); Owner.AddChild(MiscLabel); Owner.AddChild(OptionsWindow); Owner.AddChild(Version); Owner.AddChild(MovementLabel); Owner.AddChild(Movement); Owner.AddChild(Fun); Owner.AddChild(FunLabel); Owner.AddChild(GUIEditor); Owner.AddChild(GUIEditorLabel); Owner.AddChild(Updater); Owner.AddChild(UpdaterLabel); Owner.AddChild(Credits); Owner.AddChild(_CreditsLabel); Owner.AddChild(OptTitle); Owner.AddChild(OptText); }
public void OwnerCommand(IQ iq, MucRoomMember member) { Owner owner = iq.Query as Owner; // look for destroy if (owner != null) { Destroy destroy = owner.SelectSingleElement(typeof(Destroy)) as Destroy; if (destroy != null) { DestroyRoom(destroy); return; } if (!owner.HasChildElements) { // Return config owner.AddChild(RoomSettings.GetDataForm(member.Jid)); } Data dataSubmit = (Data)owner.SelectSingleElement(typeof(Data)); // form config if (dataSubmit != null && dataSubmit.Type == XDataFormType.submit) { RoomSettings.SubmitForm(dataSubmit); SettingsSave(); iq.Query.RemoveAllChildNodes(); } } iq.Type = IqType.result; iq.SwitchDirection(); }
//x=80,y=30,w=870,h=720 void Awake() { m_Skin = LMS_GuiBaseUtils.GetDarkSkin(); InitLabels(); InitButtons(); InitOverlays(); Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig { Rect = new Rect(50f, 30f, 870f, 620f) }, 20000, null); Owner.SetTexture((int)E_Texture.IDLE, m_Skin.box.normal.background); Owner.primary = true; Owner.Draggable = true; Owner.AddChild(TitleLabel); Owner.AddChild(MenuDescriptionLabel); Owner.AddChild(LeftPanel); Owner.AddChild(RightPanel); Owner.AddChild(AutomationButton); Owner.AddChild(AutomationLabel); Owner.AddChild(ActiveHierarchyLabel); Owner.AddChild(ESPButton); Owner.AddChild(ESPLabel); Owner.AddChild(MiscButton); Owner.AddChild(MiscLabel); }
private void generateItems() { for (int i = 0; i < ItemsCount; i++) { Owner.AddChild(generateItem()); } }
void Awake() { m_Skin = LMS_GuiBaseUtils.GetDarkSkin(); InitLabels(); InitButtons(); InitOverlays(); Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig { Rect = new Rect(290f, 103f, 680f, 460f) }, 20000, null); Owner.SetTexture((int)E_Texture.IDLE, m_Skin.box.normal.background); Owner.primary = true; Owner.Draggable = true; Owner.AddChild(TitleLabel); Owner.AddChild(UsernameLabel); Owner.AddChild(UsernameTextField); Owner.AddChild(UsernameRenderer); Owner.AddChild(PasswordRenderer); Owner.AddChild(PasswordLabel); Owner.AddChild(PasswordTextField); Owner.AddChild(LoginButton); Owner.AddChild(LoginText); Owner.AddChild(ErrorLabel); Owner.AddChild(DiscordButton); Owner.AddChild(DiscordLabel); }
void Awake() { InitLabels(); InitButtons(); InitOverlays(); Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig() { Rect = new Rect(Screen.width / 2 - 400f, Screen.height / 2 - 250f, 800f, 500f) }, 20000, null); Owner.SetTexture((int)E_Texture.IDLE, LMS_Textures.GetCache("AUTH_BACK_TEX")); Owner.primary = true; Owner.Draggable = true; Owner.AddChild(Title); Owner.AddChild(SubTitle); Owner.AddChild(UserLabel); Owner.AddChild(PassLabel); Owner.AddChild(UserTextFieldRenderer); Owner.AddChild(PassTextFieldRenderer); Owner.AddChild(UserTextField); Owner.AddChild(PassTextField); Owner.AddChild(LoginButton); Owner.AddChild(LoginButtonLabel); Owner.AddChild(PurchaseButton); Owner.AddChild(PurchaseButtonLabel); }
void Awake() { InitLabels(); InitToggles(); InitOverlays(); InitButtons(); InitScrollers(); Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig { Rect = new Rect(100f, 100f, 800f, 500f) }, 20000, null); Owner.SetTexture((int)E_Texture.IDLE, LMS_Textures.GetCache("MAIN_MENU_TEX")); Owner.primary = true; Owner.Draggable = true; Owner.AddChild(Creditslabel); Owner.AddChild(CopsLogo); Owner.AddChild(OptionsWindow); Owner.AddChild(Version); Owner.AddChild(OptTitle); Owner.AddChild(OptText); Owner.AddChild(Weapon); Owner.AddChild(ScreenB); Owner.AddChild(Camera); Owner.AddChild(Player); Owner.AddChild(msGUI); Owner.AddChild(WeaponLabel); Owner.AddChild(ScreenLabel); Owner.AddChild(CameraLabel); Owner.AddChild(PlayerLabel); Owner.AddChild(msGUILabel); Owner.AddChild(OptWeaponScroller); Owner.AddChild(OptInvisibleWeaponLabel); Owner.AddChild(OptInvisibleWeaponToggleLabel); }
public void SpawnBall() { Node ballInstance = ballPrefab.Instance(); Owner.AddChild(ballInstance); ((Spatial)ballInstance).Translation = ((Spatial)spawnPosition).Translation; amountOfBalls++; InterfaceController.singleton.Update(); GameManager.singleton.SetBallRecord(amountOfBalls); }
public bool SetCastle(int xStart, int yStart, int width, int height, Player active) { Map map = Map.map; if (map.InBounds(xStart, yStart) && map.InBounds(xStart + width - 1, yStart + height - 1)) { size = width * height; WorldObject[] parts = new WorldObject[size]; int index = 0; for (int i = xStart; i < xStart + width; i++) { for (int j = yStart; j < yStart + height; j++) { if (map.GetWorldObject(i, j) != null) { size--; } else { parts[index] = new WorldObject(); Entity ent = new Entity() .AddComponent(parts[index]); parts[index].SetWoName("Castle"); parts[index].SetTraversable(true); parts[index].SetMobile(false); parts[index].SetMaxHealth(200); parts[index].player = active; map.SetWorldObject(i, j, parts[index]); // for now, as this is traversable, we don't occupy the tile // map.SetTileOccupied(i, j, true); ent .AddComponent(new SpriteRenderer()) .AddComponent(new Transform2D { Position = map.GetTilePosition(i, j), DrawOrder = 1f }) .AddComponent(new Sprite(WaveContent.Assets.road_PNG)) .AddComponent(new WorldObjectTraits()) .AddComponent(new FogRevealBehavior()) .AddComponent(new FogAdjacents()); Owner.AddChild(ent); index++; } } } castleWO = new WorldObject[size]; Array.Copy(parts, castleWO, size); } return(size > 0); }
//Função para criar as imagens fantasmas quando der o dash public void CriarImagem() { var Fantasma = (Node2D)Ghost.Instance(); //Instancia o Ghost Fantasma.Position = Position; //Arruma a Posição Dele Fantasma.CallDeferred("AlterarLado", MyAnimatedSprite.FlipH); //Arruma o FlipH dele. Owner.AddChild(Fantasma); //Verificar se o dash está ocorrendo ainda e reinicia o time. if (anim == true) { MyTimer.Start(); } }
void Awake() { InitLabels(); InitButtons(); Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig() { Rect = new Rect(Screen.width / 2 - 300f, Screen.height / 2 - 200f, 600f, 400f) }, 20000, null); Owner.SetTexture((int)E_Texture.IDLE, LMS_Textures.GetCache("AUTH_BACK_TEX")); Owner.primary = true; Owner.Draggable = true; Owner.AddChild(Title); Owner.AddChild(Text); Owner.AddChild(Ok); Owner.AddChild(OkLabel); }
void Awake() { m_Skin = LMS_GuiBaseUtils.GetDarkSkin(); InitLabels(); InitButtons(); Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig() { Rect = new Rect(Screen.width / 2 - 300f, Screen.height / 2 - 200f, 600f, 400f) }, 20000, null); Owner.SetTexture((int)E_Texture.IDLE, m_Skin.box.normal.background); Owner.primary = true; Owner.Draggable = true; Owner.AddChild(Title); Owner.AddChild(Text); Owner.AddChild(Ok); Owner.AddChild(OkLabel); }
void Awake() { InitLabels(); InitButtons(); InitOverlays(); Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig() { Rect = new Rect(0f, 0f, 500f, Screen.height) }, 20000, null); Owner.SetTexture((int)E_Texture.IDLE, LMS_Textures.GetCache("OVERLAY_BACK_TEX")); Owner.primary = true; Owner.AddChild(LoggedInAs); Msgs.Loop(curr => Owner.AddChild(curr)); Owner.AddChild(SendButton); Owner.AddChild(SendButtonLabel); Owner.AddChild(MsgTextField); Owner.AddChild(MsgTextFieldRenderer); }
void Awake() { m_ColorThread = gameObject.AddComponent <LMS_ColorThread>(); m_ColorThread.SetInterval(0.5f); m_ColorThread.IgnoreOwner = true; m_ColorThread.Render = true; InitLabels(); InitButtons(); Owner = LMS_GuiBaseUtils.InstantiateGUIElement <LMS_GuiBaseBox2D>(new LMS_GuiConfig() { Rect = new Rect(Screen.width / 2 - 400f, Screen.height / 2 - 250f, 800f, 500f) }, 20000, null); Owner.RegisterClientViewTick((view) => { Owner.SetTexture((int)E_Texture.IDLE, new Texture2D(1, 1).Modify((tex) => { tex.SetPixel(0, 0, m_ColorThread.RawValue().AlterAlpha(0.7f)); tex.Apply(); })); }, null); Owner.primary = true; Owner.Draggable = true; Owner.AddChild(m_Title); Owner.AddChild(GEditor); Owner.AddChild(GEditorLabel); Owner.AddChild(Colors); Owner.AddChild(ColorsLabel); }
protected override void OnInitialize() { GameObject top = new GameObject(Owner.Game); top.Name = "TopShop"; GameObject bottom = new GameObject(Owner.Game); bottom.Name = "BottomShop"; Owner.AddChild(top); Owner.AddChild(bottom); Owner.Game.AddGameObject(top); Owner.Game.AddGameObject(bottom); Atlas = Owner.Game.Content.Load <TextureAtlas>(string.Format("Assets\\{0}\\data", Owner.Name)); var rectangle = Atlas.Rectangles["top"]; top.Position = Vector2.Zero; top.Size = new Vector2(rectangle.Width, rectangle.Height); top.Body.Shape.Size = new Vector2(top.Size.X, top.Size.Y); top.Body.BodyType = BodyType.Static; top.Body.CollisionFlags = CollisionFlags.Solid; top.AddComponent(new ColliderRenderer(top)); Owner.Game.World.CreateBody(top.Body, CollisionSettings.ObstacleCollisionGroup); Sprite sprite = new Sprite(Atlas.Texture, top.Position, Vector2.One, rectangle); top.AddComponent(new SpriteRenderer(top, sprite)); top.InitializeComponents(); // haxaillaan renderer oikeaan paikkaan rectangle = Atlas.Rectangles["bottom"]; bottom.Size = new Vector2(rectangle.Width, rectangle.Height); bottom.Position = new Vector2(top.Position.X, top.Size.Y); bottom.Body.BodyType = BodyType.Static; bottom.AddComponent(new ColliderRenderer(bottom)); Owner.Game.World.CreateBody(bottom.Body, CollisionSettings.ShopCollisionGroup); sprite = new Sprite(Atlas.Texture, bottom.Position, Vector2.One, rectangle); bottom.AddComponent(new SpriteRenderer(bottom, sprite)); bottom.InitializeComponents(); Owner.Size = new Vector2(bottom.Size.X, bottom.Size.Y + top.Size.Y); // koska leveys jne // TODO vittuko ei osaa GameObject box = CreateBox(120f, bottom.Y, 70f, 75f); Owner.Game.AddGameObject(box); Owner.Game.World.CreateBody(box.Body, CollisionSettings.ObstacleCollisionGroup); GameObject boxlower = CreateBox(box.X, box.Y + box.Size.Y + 1, box.Size.X / 2f, 20f); Owner.Game.AddGameObject(boxlower); Owner.Game.World.CreateBody(boxlower.Body, CollisionSettings.ObstacleCollisionGroup); GameObject boxRight = CreateBox(box.X + box.Size.X + 1, box.Y, 40f, 50f); Owner.Game.AddGameObject(boxRight); Owner.Game.World.CreateBody(boxRight.Body, CollisionSettings.ObstacleCollisionGroup); GameObject boxRightRight = CreateBox(boxRight.X + boxRight.Size.X + 1, boxRight.Y, 40f, 35f); Owner.Game.AddGameObject(boxRightRight); Owner.Game.World.CreateBody(boxRightRight.Body, CollisionSettings.ObstacleCollisionGroup); GameObject boxRightRightRight = CreateBox(boxRightRight.X + boxRightRight.Size.X + 1, boxRight.Y, 40f, 15f); Owner.Game.AddGameObject(boxRightRightRight); Owner.Game.World.CreateBody(boxRightRightRight.Body, CollisionSettings.ObstacleCollisionGroup); // kolmio on ~200 pikseliä leveä ylhäältä ja noin 140 pikseliä korkea 90 asteen kulman kohdalta // joten tehdään korkeudesta 140 - 32 niin pelaaja menee hyvin // 112 / 2f = /*triangle.Body = new Body(triangle, new PolygonShape( * new Vector2(-100f, -112f / 2f), * new Vector2(100f, -112f/2f), * new Vector2(-100f, 112f/2f) * ), * new Vector2(600f)); // position on about 100 pikseliä ovesta ja 32 pikseliä alempana*/ /*triangle.Body = new Body(triangle, * new PolygonShape( * new Vector2(-50f, -50f), * new Vector2(50f, -50f), * new Vector2(50f, 50f), * new Vector2(-50f, 50f) * ), new Vector2(600f));*/ /*triangle.Body.BodyType = BodyType.Static; * triangle.Body.CollisionFlags = CollisionFlags.Solid; * triangle.InitializeComponents();*/ //Owner.Game.AddGameObject(triangle); //Owner.Game.World.CreateBody(triangle.Body); Owner.InitializeComponents(); }