[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
Skyline Forums • View topic - Draw commands
For any feature requests to either the Skyline Engine or the websites and forums please leave your suggestion here.

Draw commands

Draw commands

Postby ant0N » 14 Dec 2012, 16:42

Hi guys!
I suggest you create two new commands:
draw.image(image, x, y, sizeX and sizeY)
draw.text($text, x, y)
or show me analogues of these commands :)
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: Draw commands

Postby StarFire » 14 Dec 2012, 16:54

User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer

Re: ничьи команды

Postby ant0N » 15 Dec 2012, 09:50

YES, thank you! ;)
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: ничьи команды

Postby ant0N » 27 Dec 2012, 11:58

how can I place an image on the screen??
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: Draw commands

Postby StarFire » 27 Dec 2012, 12:13

Good question lol

I will add this to the lua to-do list and see what I can come up with. We have the sprite action which provides quite a few image properties, have a look at the "Default - 2D :: Sprite" preset for the properties. I will create a lua version of this as it will provide a few powerful image features ;)
User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer

Re: ничьи команды

Postby ant0N » 27 Dec 2012, 12:18

Thank You NightHawk!
please add these commands:
draw.image(image, x, y, sizeX and sizeY)
draw.text($text, x, y)
:D
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: Draw commands

Postby StarFire » 27 Dec 2012, 12:25

they are on my list ;)
User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer

Re: Draw commands

Postby ant0N » 22 Jul 2014, 07:59

we already have analogues of these functions? If not, is there a way to create a game inventory at the moment?
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: Draw commands

Postby SolarPortal » 22 Jul 2014, 09:10

You could develop your inventory using the built in GUI Editor located either in the "view>editor>GUI Editor" or use the button on the toolbar.
This is a HTML based screen which we find quite capable.
You will then have to use the lua commands to change what your GUI does.

There are also a few demos located in the tech demos("$(SkylineSDK)/Asset Library/Scenes/Tech Demos/GUI") folder to get you started.
The GUI files are located in "$(SkylineSDK)/Asset Library/GUI"

If there us anything you need, let us know :D
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 12 guests