Search found 49 matches

by arkos
Sun Oct 15, 2006 20:37
Forum: Modifications / Integrations / Customisations
Topic: Left Align Button Text?
Replies: 4
Views: 3831

hey lindquist, thanks for the reply. That looks like it would solve the problem, however, that would alter ALL of the buttons rather than a select few. To work around this I am assuming I would have to define a look and feel of a special "L_button" which would be the same as the regular bu...
by arkos
Fri Oct 13, 2006 17:07
Forum: Modifications / Integrations / Customisations
Topic: Left Align Button Text?
Replies: 4
Views: 3831

Hey pompei2, thanks for the reply. I know about the StaticText alignment and I often use the HorzFormatting to center the text from the default left alignment. Unfortunately, push button doesn't seem to have anything like this. The offset X looks like it has promise, but doesn't seem to work as adve...
by arkos
Tue Oct 10, 2006 21:39
Forum: Modifications / Integrations / Customisations
Topic: Duplicating a window
Replies: 2
Views: 2360

I figured out that the window would have to be static cast CEGUI::Window* t = CEGUI::WindowManager::getSingleton().createWindow("WindowsLook/FrameWindow", "testframe"); *((CEGUI::FrameWindow*)t) = *((CEGUI::FrameWindow*)getWindow(&q...
by arkos
Tue Oct 10, 2006 21:22
Forum: Modifications / Integrations / Customisations
Topic: Duplicating a window
Replies: 2
Views: 2360

Duplicating a window

Hello, I want to duplicate a window. I tried: CEGUI::Window* t = CEGUI::WindowManager::getSingleton().createWindow("WindowsLook/FrameWindow", "testframe"); (*t) = (*(getWindow("report_win"))); but got compiler error, "...
by arkos
Tue Oct 10, 2006 19:53
Forum: Modifications / Integrations / Customisations
Topic: Left Align Button Text?
Replies: 4
Views: 3831

Left Align Button Text?

Hey guys, I am trying to left align the text on a bunch of buttons. I found the function setTextXOffset() but it doesn't seem to do squat. Also when I call this function is it supposed to kill the centered alignment and make it left aligned with the offset or is the offset taken from the center? Why...
by arkos
Sun Sep 17, 2006 16:08
Forum: Modifications / Integrations / Customisations
Topic: CEGUI sans mouse input Problem
Replies: 1
Views: 2045

Hey guys, I wrote some code to let me do what I want. I am putting it up so that someone else can use it if they need to or they can make it better. class ButtonContainerClass { public: void addBtn(CEGUI::String); // Add a button to the container void nextBtn(); // Move the sele...
by arkos
Tue Sep 12, 2006 15:44
Forum: Modifications / Integrations / Customisations
Topic: CEGUI sans mouse input Problem
Replies: 1
Views: 2045

CEGUI sans mouse input Problem

Hey guys, I am thinking about making a game with Ogre that uses the Xbox360 controller. I was wondering if there was a way that I could integrate the controllers d-pad (or the arrow buttons on the computer's keyboard) with CEGUI. I only have like three menus so I was thinking that I could just have ...
by arkos
Tue Sep 12, 2006 15:39
Forum: Modifications / Integrations / Customisations
Topic: How can i add a new font to CEGUI Editor.?
Replies: 9
Views: 5946

hey, this is just a shot in the dark, but I was thinking that if the layout editor can't read more than 127 of your font, maybe you should try using the getWindow()->setText("you message here"); from within code. Maybe this will work.

Hope this helps.
by arkos
Mon Aug 21, 2006 20:44
Forum: Help
Topic: Making a list box selectable [Solved]
Replies: 4
Views: 3631

I just wanted to add something. If you are using WindowsLook, you need to make sure that the ListboxSelectionBrush exists in the imageset file. Then you need to make sure that the square it corresponds to in the targa file has a white alpha. The actual color channel can just be left blank because yo...
by arkos
Thu Aug 17, 2006 20:04
Forum: Modifications / Integrations / Customisations
Topic: isHit() not working for some reason
Replies: 0
Views: 1827

isHit() not working for some reason

Hey all, I am trying to see if the mouse is hovering over a certain window. I will be checking if it is hovering over that window while at the same time not hovering over another specific window (to sense overlap). For some reason it seems like isHit() never returns true for me. Am I using it incorr...
by arkos
Mon Jun 12, 2006 22:02
Forum: CEGUI Library Development Discussion
Topic: Rotating Images
Replies: 9
Views: 10220

I was just wondering if there was going to be any native support in CEGUI for rotating images, anytime soon?
by arkos
Sun Jun 11, 2006 03:20
Forum: Modifications / Integrations / Customisations
Topic: Changing the image on a Thumb
Replies: 1
Views: 1729

alright, I don't know the correct way to acheive a custom image on the slider thumb, but what I did as a work around was place a static image on top of the thumb. The image has the same size and position as the thumb. Then in code, I setEnabled(false) on the image window and subscribe the thumb to a...
by arkos
Sun Jun 11, 2006 02:40
Forum: Modifications / Integrations / Customisations
Topic: Changing the image on a Thumb
Replies: 1
Views: 1729

Changing the image on a Thumb

Hey guys, I am using windows look and I am trying to make a slider in my game that has a different picture on it than the regular slider. Since the slider Thumb inherits from push button class I thought that the following code would work. CEGUI::Thumb *thumb = (CEGUI::Thumb*)wmgr.getWindow&#...
by arkos
Wed Jun 07, 2006 07:20
Forum: Modifications / Integrations / Customisations
Topic: Scaling Problem with WindowsLook.tga
Replies: 6
Views: 3880

Well I got the WindowsLookSkin.scheme to finally work, but I still don't have a clue how to scale the darn images down! :evil: I went into the looknfeel file, but I don't really get what this means: <UnifiedDim scale="1" type="BottomEdge" /> Does anyone have any advice!?!?!?!
by arkos
Wed Jun 07, 2006 06:31
Forum: Modifications / Integrations / Customisations
Topic: Horizontal Dragging
Replies: 1
Views: 1676

I guess what I am going to do is use a SliderThumb widget. It has the functionality that I am looking for, unfortunately I do not understand how to change its image from within code. I figured because it is inherited from PushButton I could use the same code for changing the normal image, but that d...

Go to advanced search