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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...