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 - billarhos

#16
General Discussion / Re: Kitchen Sink
15 June 2019, 04:19:37
I think knobs deserve a separate thread because they are so cool.. 8)


Quote- When you close the keyboard, the "Buttons" tab is no longer selected.

pTabBar->setEnabled(false);
pTabBar->setEnabled(true);


The above code kills the selected tab. When a tab bar goes disabled must not lose his selected index.

Thenk you for the ScrollablePanel info. It was so obvious that i was totally blind.



pScrollablePanelTheme = tgui::ScrollablePanel::copy(pScrollablePanel);
pScrollablePanelTheme->setRenderer(theme->getRenderer("ScrollablePanel"));
pScrollablePanelTheme->getRenderer()->setFont(*pFont);


The above code (setting new font) sets all text data in scrollpanel to lowercase.
Ha, just tested with label and is happening the same. I think is in all widgets cause they are sharing the same code.
#17
General Discussion / Re: Kitchen Sink
14 June 2019, 12:43:02
I think knobs need some improvements.
When i pressed down left mouse the indicator must no be moved to the direction of mouse point but only if i start moving the mouse while it still down.
Also when i double click on them they should reset.
Also they must stop on min or max and not moving around.
#19
General Discussion / Re: Kitchen Sink
14 June 2019, 09:23:05
I have some hard times with "ScrollablePanel"


Panel {
BackgroundColor = rgba(100, 100, 100, 255);
BorderColor        = rgba(0, 0, 0 , 255);
Borders              = (1, 1, 1, 1);
OpacityDisabled = 0.3
}

ScrollablePanel {
Panel = &Panel;
OpacityDisabled = 0.3
}


If i remove Panel property is working. With panel property is crashing. Panel alone is working fine.

#20
General Discussion / Re: Kitchen Sink
14 June 2019, 08:12:50
While making SpinButton i found that texturearrowuppressed, texturearrowdownpressed are missing. Is there a reason?

#22
General Discussion / Re: Kitchen Sink
13 June 2019, 18:48:23
Ha, i thought that "setTimeToDisplay" has to do with how long the tooltip would shown. Sorry.! I stay still for 1000 mscs and it appeared.

I think i am down with the code. i 'll move forward to finish gui.png!
#23
General Discussion / Re: Kitchen Sink
13 June 2019, 18:15:49
QuoteAre you calling something like "gui.add(pLabelToolTip)" somewhere by any chance?
YES, i remove it. Now never shows.
Commenting "pLabelToolTip->setPosition()" also didn't help.

Should i give tooltip widget position?
#24
General Discussion / Re: Kitchen Sink
13 June 2019, 12:00:07

pClickableWidget = tgui::ClickableWidget::create();
pClickableWidget->setPosition(50, 620);
        pClickableWidget->setSize(250, 100);

  tgui::ToolTip::setTimeToDisplay(sf::milliseconds(1000));
tgui::ToolTip::setDistanceToMouse({ 4, 8 });

pLabelToolTip = tgui::Label::create("ClickableWidget is here!");
pLabelToolTip->setPosition(pClickableWidget->getPosition());
pClickableWidget->setToolTip(pLabelToolTip);



the above code show the tooltip all the time. Missing something?
#25
General Discussion / Re: Kitchen Sink
12 June 2019, 20:11:45
QuoteI've added a TextureBackground property to the label renderer.
Great!

QuoteOn the "Labels" tab it also says "Canvas", is that something you are still going to add there or am I missing something?
The bottom line is painted via "tgui::Canvas"; On top i give a clue to user of what i demonstrate in each tab!
I agree with all other stuff you said but when i ll finish the code i ll make the png texture theme, so all will make sense.

I believe tomorrow i will finish the code.
#26
General Discussion / Re: Kitchen Sink
12 June 2019, 08:39:39
Labels + buttons ready

Windows platform executable
http://www.mediafire.com/file/6hr1gs6ecevpdv4/KitchenSink.rar/file
#27
General Discussion / Re: Kitchen Sink
11 June 2019, 19:43:09
Yes exactly, a background texture instead of background color.


Labels tab finished
#28
General Discussion / Re: Kitchen Sink
11 June 2019, 11:08:01
During adding "labels" in kitchen sink i was thinking how awesome would be if a "texture" feature exist! There isn't a "texture" for labels, correct?
#29
General Discussion / Re: Kitchen Sink
10 June 2019, 15:09:35
Ok, i 've already started.
#30
General Discussion / Kitchen Sink
10 June 2019, 15:00:11
Would a kitchen sink example would be useful for future tgui users?