Jump to content
Korean Random
SV_Kirov

Как создать форму(Окно) в ангаре

Recommended Posts

@SkepticalFox The above two links cannot be open at my side.

 

 

now I got a transparent imovable transparent view when I use AbstractView class in AS and AbstractWindowView in PY( it a coincident actually)

 

image.png.4c26f4e985d2c4331f64b5968b4696d0.png

 

You can find the text with link at top-left corner and the two button below ( the checkbox with tooltip also) ,  next step is adding image and make it movable

 

@Budyx69 

On 7/13/2015 at 2:46 AM, Budyx69 said:

Nice :-)

 

THX

 

shot_128zrsel.jpg

 

 

Work :-)

How to add icon to garage like above?

Edited by yinx2002

Share this post


Link to post

Short link
Share on other sites
9 hours ago, yinx2002 said:

How to add icon to garage like above?

there are different ways to do this, for example like this:

[Embed(source="image.jpg")]
public var imageClass:Bitmap;

// later on you can instantiate it and use:
addChild(new imageClass()); // creates and adds new image

from https://stackoverflow.com/questions/23347816/embed-images-using-flashdevelop-as3

Share this post


Link to post

Short link
Share on other sites
3 hours ago, yinx2002 said:

can somebody show me the code to add a slider?

slider = addChild(App.utils.classFactory.getComponent("Slider",Slider, {

minimum: 0,

maximum: 100,

snapInterval: 10,

snapping: true,

liveDragging: true,

value: 50

})) as Slider;

not tested
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

I found a class ProgressBar under net.wg.gui.components.controls which is the same location as the Slider or SoundButton in prev. example. But when I use

 

progress = addChild(App.utils.classFactory.getComponent("ProgressBar ",ProgressBar , {

minimum: 0,

maximum: 100,

value: 50

})) as ProgressBar ;

 

I got error 

 

2022-01-25 10:33:07.495: ERROR: object with "ProgressBar " linkage is not a component from library!
2022-01-25 10:33:07.496: ERROR: object with "ProgressBar " linkage can`t cast to [class ProgressBar]

 

Share this post


Link to post

Short link
Share on other sites
9 часов назад, yinx2002 сказал:

And after removing space, the error persist

No, the error in your previous post is about space. If you removed the space and got errors, show it.

Share this post


Link to post

Short link
Share on other sites

the error is the same 

 

2022-01-27 10:10:34.666: ERROR: object with "ProgressBar" linkage is not a component from library!
2022-01-27 10:10:34.667: ERROR: object with "ProgressBar" linkage can`t cast to [class ProgressBar]

my code is 

 

			progress = addChild(App.utils.classFactory.getComponent("ProgressBar",ProgressBar , {
				minimum: 0,
				maximum: 100,
				value: 50
				})) as ProgressBar;

 

Share this post


Link to post

Short link
Share on other sites

I found if I create a window using AbstractWindowView or AbstractView , the window in client display normally in lobby but will overlap with the game UI even if  I leave lobby by clicking different tab in the header. What event should I listen that to hide the window and show it again ?

Share this post


Link to post

Short link
Share on other sites

Здравствуйте подскажите как например сделать кнопку в ангаре на социальную сеть телеграмм или на любую другую 

Share this post


Link to post

Short link
Share on other sites

@P.S.Enot на основе xvm должно быть просто, addchild кнопки в нужный слой. Без xvm нужно писать ещё код инжекта, вроде, где-то пример был.

 

Share this post


Link to post

Short link
Share on other sites
46 минут назад, SkepticalFox сказал:

@P.S.Enot на основе xvm должно быть просто, addchild кнопки в нужный слой. Без xvm нужно писать ещё код инжекта, вроде, где-то пример был.

 

по ходу я далек от этого

Share this post


Link to post

Short link
Share on other sites

@P.S.Enot никто вам готовое не разжует и в рот не положит, учитесь, спрашивайте - вам помогут...

Когда-то Андрей накидал примеров был давно, смотрите тут, может поможет что-то.

https://github.com/Mododejl/code-example

Share this post


Link to post

Short link
Share on other sites
1 час назад, Xotabych сказал:

@P.S.Enot никто вам готовое не разжует и в рот не положит, учитесь, спрашивайте - вам помогут...

Когда-то Андрей накидал примеров был давно, смотрите тут, может поможет что-то.

https://github.com/Mododejl/code-example

Спасибо . 

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...