Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - MattDA

#1
Help requests / Tree View Tutorials?
17 January 2023, 02:13:21
Hi. I was trying to create a tree view but I am not sure how it works. It takes an array of strings as an Item but each string of that array creates a deeper indent.
so for example, a string array like {"Object", "SubObject", "SubObject2"}
ends up looking like this.
Object
     SubObject
          SubObject2

But what I want is something like this.
Object
     SubObject
     SubObject2
I see on the main tgui page the screenshots show a proper tree view example. Are those examples available?
#2
Help requests / Re: Texture for RangeSlider
12 October 2020, 19:45:17
I meant that RangeSliderRenderer is inherited from SliderRenderer; At least that's what it looks like in the documentation's UML diagram. I would expect then that a RangeSliderRenderer would have all the properties of a SliderRenderer.

QuoteWhat exactly doesn't work? Do you get an error or does is just not show the textures?
I can not display the RangeSlider that shows my textures and changes the color or texture between the two thumbs. I will post a screenshot.


#3
Help requests / Texture for RangeSlider
12 October 2020, 02:43:11
Hello. I am trying to make a display child window that has all of the TGUI widgets. The widgets are using a modified version of black.txt. The texture atlas is my own custom drawn png. The issue I am having is with RangeSlider. There does not seem to be a way to load textures for the space between the two thumbs.

RangeSlider is inherited from Slider, but the object properties (that we set in a theme file or setters) are not available.
In other words I can not set the RangeSlider to display textures (available to Sliders) and the color values in the RangeSlider renderer.


RangeSlider {


/*
TextureTrack      = "GUI.png" Part(245, 45, 26, 26) Middle(6, 6, 14, 14);
    //TextureTrackHover = "GUI.png" Part(297, 45, 26, 26) Middle(2, 2, 22, 22);
    TextureThumb      = "GUI.png" Part(350, 45, 26, 26) Middle(2, 2, 22, 22) Smooth;
TextureThumbHover = "GUI.png" Part(375, 45, 26, 26) Middle(2, 2, 22, 22) Smooth;
//SelectedTrack     = "GUI.png" Part(297, 45, 26, 26) Middle(2, 2, 22, 22);
*/

SelectedTrackColor = rgb(190, 0, 0, 100);
SelectedTrackColorHover = rgb(0,190, 0, 100);
}