Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline bfox  
#1 Posted : Tuesday, February 14, 2012 5:47:38 PM(UTC)
bfox

Joined: 8/22/2011(UTC)
Posts: 170
Location: Moscow

Thanks: 3 times
Was thanked: 2 time(s) in 2 post(s)
Hi. How i can rotate UI (buttons)?
Code:
Button.Rotation = 98;
Does not do anything.
i edit Label class
add :
Code:
public new float Rotation = 0;

now :
Code:
Button.Rotation = 98;
work,but rotate only text.
How i can rotate LocalArea = Rectangle...?
Russian game developer.
Давайте делать игры в команде. Идет набор.

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline Benjamin  
#2 Posted : Tuesday, February 14, 2012 7:02:53 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
Sorry, rotation of UI elements is currently not fully supported.

Code:

				if (rotation != 0.0f)
				{
					Log.Info(
						"TODO: The rotation of UI controls is currently not supported.");
					rotation = 0.0f;
				} // if


You could hack in your own solution in the Draw calls of the UI controls you want to be rotateable, but we currently have no time table on when UI rotation will be available for all UI controls (not planed for v0.9.4 or v0.9.5).
Offline bfox  
#3 Posted : Tuesday, February 14, 2012 8:36:06 PM(UTC)
bfox

Joined: 8/22/2011(UTC)
Posts: 170
Location: Moscow

Thanks: 3 times
Was thanked: 2 time(s) in 2 post(s)
Originally Posted by: Benjamin Nitschke (DeltaEngine) Go to Quoted Post
Sorry, rotation of UI elements is currently not fully supported.

Code:

				if (rotation != 0.0f)
				{
					Log.Info(
						"TODO: The rotation of UI controls is currently not supported.");
					rotation = 0.0f;
				} // if


You could hack in your own solution in the Draw calls of the UI controls you want to be rotateable, but we currently have no time table on when UI rotation will be available for all UI controls (not planed for v0.9.4 or v0.9.5).

No problem, Thanks for the answer.
Russian game developer.
Давайте делать игры в команде. Идет набор.
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.244 seconds.