Jump to content


Issue #193: X-Net category buttons and scrolling


  • This topic is locked This topic is locked
18 replies to this topic

#1 Guest_Azrael_*

Guest_Azrael_*
  • Guests

Posted 22 November 2005 - 08:08 AM

First click on a grey button unrolls blue ones, second should roll 'em back.

It would be nice to be able to scroll right list with a wheel.

And that new scroll bar doesn't work properly (should scroll continiously with mouse button down).



#2 reist

reist

    Programming Department

  • Xenocide Programming Department
  • 130 posts

Posted 22 November 2005 - 02:41 PM

This one's stalled while I wait for SupSuper's reply whether he can make a Xenocide ScrollablePane (The difference being lots of repeating code)

I can submit a patch that uses TaharezLook's pane. First and second issues should be solved (CEGUI doesn't admit that my mouse has a wheel <_<).

Edited by reist, 22 November 2005 - 02:42 PM.


#3 reist

reist

    Programming Department

  • Xenocide Programming Department
  • 130 posts

Posted 24 November 2005 - 04:52 AM

About scrolling - there's a scroll bar picture embedded into the right background (textures\ui\xnet\xnetright.png). It really should be removed.

#4 reist

reist

    Programming Department

  • Xenocide Programming Department
  • 130 posts

Posted 26 November 2005 - 09:34 AM

A widget with the exact xenocide look and behaviour (the continuous scroll) will be done whenever SupSuper will have the time for it.
In the meantime, I think my patch could be used anyway, with the regular ScrolledPane. I can convert the left side scroll too. This means we need only to worry in the code about the items added into the panes (text, button) and not about scrolling and looks.
i add here a picture of how it looks and the patch.
One addition in this patch - button size, space, font etc. is moved into the layout for the artists to adjust.

Edit: The scroll in the background is seen here. Oh, and the colors are off because the screenshot was done under emulated 3d (still waiting for a linux driver with shaders :( )

Attached Files


Edited by reist, 26 November 2005 - 09:36 AM.


#5 UnFleshed One

UnFleshed One

    Programming Department

  • Xenocide Inactive
  • 304 posts

Posted 26 November 2005 - 01:46 PM

I think my patch could be used anyway, with the regular ScrolledPane


Ok, I'll commit it in a minute. Background can be fixed later.

So only last one remais. To make it scroll continiously...

Edited by UnFleshed One, 26 November 2005 - 01:47 PM.

Darkness is under the candle.

#6 dteviot

dteviot

    Programming Department

  • [Xenocide Senior Members]
  • 1,479 posts

Posted 03 December 2005 - 04:10 AM

A widget with the exact xenocide look and behaviour (the continuous scroll) will be done whenever SupSuper will have the time for it.
In the meantime, I think my patch could be used anyway, with the regular ScrolledPane. I can convert the left side scroll too. This means we need only to worry in the code about the items added into the panes (text, button) and not about scrolling and looks.
i add here a picture of how it looks and the patch.
One addition in this patch - button size, space, font etc. is moved into the layout for the artists to adjust.

Edit: The scroll in the background is seen here. Oh, and the colors are off because the screenshot was done under emulated 3d (still waiting for a linux driver with shaders  :( )

<{POST_SNAPBACK}>

Hi Reist,

OK, I've figured out how to get the verical scroll bar in the TaharezLook/ScrollablePane to autorepeat if you hold the mouse down. The quick and dirty solution is to set to "True" the "MouseButtonDownAutoRepeat" property of the up and down buttons used in the TaharezLook/VerticalScrollbar control. (The buttons are called "__auto_incbtn__" and "__auto_decbtn__")

This control is defined in the file
...\xenocide\xenocidegame\data\ui\schemes\taharez_look.looknfeel

and I've attached the updated version of this file, so you can see the changes.

Of course, the correct way to do the change would be to copy the TaharezLook/ScrollablePane and TaharezLook/VerticalScrollbar objects into the file "xenolook_widgets.looknfeel", then change their names to XenoLook/ScrollablePane and XenoLook/VerticalScrollbar, and change the XenoLook/ScrollablePane to use the XenoLook VerticalScrollbar instead of the TaharezLook one.

You then update the file xenocide.scheme with a FalagardMapping for each of the new controls, then finally update xnet.layout to use the XenoLook/ScrollablePane.

The end result of this is we have a new scrollable pane that we can customize to our heart's content.

When I look at xenolook_widgets.looknfeel it looks like someone (SupSuper perhaps?) has already started work on this, as there's a XenoLook/Slider control in the file, but I couldn't get it to work.

Final comment, CEGUI SDK includes a file Falagard_Skinning_Docs.pdf that is a pretty good tutorial on all this stuff.

Attached Files


Saving the world from the scum of the universe is hard work. Especially when you have to create the scum to begin with.

#7 reist

reist

    Programming Department

  • Xenocide Programming Department
  • 130 posts

Posted 03 December 2005 - 08:37 AM

Can't open the archive...
"End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive."

Edit: Slider is the horizontal bar used for non-accurate limits (like volume in the options dialog)

Edited by reist, 03 December 2005 - 08:48 AM.


#8 Guest_Azrael_*

Guest_Azrael_*
  • Guests

Posted 03 December 2005 - 09:00 AM

Can't open the archive...
"End-of-central-directory signature not found.  Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive."

Edit: Slider is the horizontal bar used for non-accurate limits (like volume in the options dialog)

<{POST_SNAPBACK}>

Try again, I think we were having some sort of trouble with attachments and downloads, I tried and works ok for me :)

#9 reist

reist

    Programming Department

  • Xenocide Programming Department
  • 130 posts

Posted 03 December 2005 - 09:10 AM

No such luck :(

#10 dteviot

dteviot

    Programming Department

  • [Xenocide Senior Members]
  • 1,479 posts

Posted 03 December 2005 - 01:05 PM

No such luck :(

<{POST_SNAPBACK}>

Here's a snippet showing the changes I made.
(Added lines are coloured red)

<Child type="TaharezLook/Button" nameSuffix="__auto_incbtn__">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><ImageDim imageset="TaharezLook" image="MiniVertScrollDownNormal" dimension="Height" /></Dim>
</Area>
<VertAlignment type="BottomAligned" />
<Property name="UseStandardImagery" value="False" />
<Property name="NormalImage" value="set:TaharezLook image:MiniVertScrollDownNormal" />
<Property name="HoverImage" value="set:TaharezLook image:MiniVertScrollDownHover" />
<Property name="PushedImage" value="set:TaharezLook image:MiniVertScrollDownNormal" />
<Property name="MouseButtonDownAutoRepeat" value="True" />
</Child>
<Child type="TaharezLook/Button" nameSuffix="__auto_decbtn__">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height" ><ImageDim imageset="TaharezLook" image="MiniVertScrollUpNormal" dimension="Height" /></Dim>
</Area>
<Property name="UseStandardImagery" value="False" />
<Property name="NormalImage" value="set:TaharezLook image:MiniVertScrollUpNormal" />
<Property name="HoverImage" value="set:TaharezLook image:MiniVertScrollUpHover" />
<Property name="PushedImage" value="set:TaharezLook image:MiniVertScrollUpNormal" />
<Property name="MouseButtonDownAutoRepeat" value="True" />
</Child>
Saving the world from the scum of the universe is hard work. Especially when you have to create the scum to begin with.

#11 reist

reist

    Programming Department

  • Xenocide Programming Department
  • 130 posts

Posted 03 December 2005 - 02:48 PM

Thanks.
...I pretty much guesses that would be it. Looks like I'll be cloning over the whole VerticalScrollbar and StaticText for about 4 lines of changes in each.
Well, at least looknfeel is easier to modify than code, and no need to recompile ;)

edit: Oh yeah, and ScrollablePane too.

Edited by reist, 03 December 2005 - 02:52 PM.


#12 reist

reist

    Programming Department

  • Xenocide Programming Department
  • 130 posts

Posted 03 December 2005 - 04:34 PM

Right, here's how it looks now (including dteviot modifications to the background)
I moved the down buttons on the scrollbars to the real bottom and added continuous scrolling.
Should the thumb be left like this, or should they be like they were before(tiny)?

I'm putting the patch+background images here.
If anyone thinks the background should be different, change it. I'm just not good with graphics :shrug:

Edit: Just noticed the text area didn't look right. I've replaced the patch.

Attached Files

  • Attached File  xnet.jpg   133.49K   32 downloads
  • Attached File  xnet.zip   374.56K   13 downloads

Edited by reist, 03 December 2005 - 05:11 PM.


#13 Beetle

Beetle

    Programming Department

  • Xenocide Inactive
  • 350 posts

Posted 04 December 2005 - 05:01 AM

Ok, i have uploaded your patch, i think there is still one bug (either ogre window is too small, or right xnet panel is too small, because mouse arrow leave one pixel width trace)

Attached Files


Posted Image

#14 reist

reist

    Programming Department

  • Xenocide Programming Department
  • 130 posts

Posted 04 December 2005 - 06:24 AM

Fixed.

Attached Files

  • Attached File  fix.zip   1.22K   17 downloads


#15 Beetle

Beetle

    Programming Department

  • Xenocide Inactive
  • 350 posts

Posted 04 December 2005 - 06:51 AM

Uploaded :)
Posted Image

#16 reist

reist

    Programming Department

  • Xenocide Programming Department
  • 130 posts

Posted 04 December 2005 - 11:26 AM

Can this bug be considered closed, or are there any issues that still need to be fixed?

#17 Beetle

Beetle

    Programming Department

  • Xenocide Inactive
  • 350 posts

Posted 04 December 2005 - 11:44 AM

And what do you think :)
Posted Image

#18 reist

reist

    Programming Department

  • Xenocide Programming Department
  • 130 posts

Posted 04 December 2005 - 12:05 PM

I'd say this is an ex-bug ;)

#19 Guest_Azrael_*

Guest_Azrael_*
  • Guests

Posted 04 December 2005 - 12:10 PM

Ok, closed, then :), someone close it at the bugtracker.