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 - 0x00

#1
General Discussion / Re: Time for new bug.
08 November 2016, 05:44:18
You are amazing thx for your work)
#2
General Discussion / Re: Time for new bug.
07 November 2016, 20:20:15
1) I'm using 0.8 version and bug still be.
2) My mistake need more coffe and I think wee need something like RadioButtonGroup when we have 5 RadioButtons and check one of them then other are unchecks automaticaly.
P.s. thx for GetCaretPos() )
#3
General Discussion / Time for new bug.
07 November 2016, 14:43:22
Hi again Texus :D
1. If MenuBar parented to Panel (or something else) we need to hold LMB to select something.


        tg::Gui gui(window);
        tg::Theme theme("Black.txt");

auto panel = tg::Panel::create();
panel->setRenderer(theme.getRenderer("Panel"));
panel->setSize(tg::bindSize(gui));
gui.add(panel);

auto menu = tg::MenuBar::create();
menu->setRenderer(theme.getRenderer("MenuBar"));
menu->addMenu("Menu");
menu->addMenuItem("Item One");
menu->addMenuItem("Item Two");
panel->add(menu); //gui.add(menu) for correct selection


2. RadioButton - can't unckeck after checking.


        auto radio = tg::RadioButton::create();
radio->setRenderer(theme.getRenderer("RadioButton"));
radio->connect("Checked", []() {printf("RadioButton Checked!\n"); });
radio->connect("Unchecked", []() {printf("RadioButton Unchecked!\n"); }); //Wrong! can't handle uncheck event (?)
radio->connect("Clicked", []() {printf("RadioButton Clicked!\n"); }); //Triggered every click. (its fine)
panel->add(radio);


P.S. I'm still programming and if I'll get any other bugs with other elements I'll update that post.
#4
General Discussion / Re: Time for bugs. 6x combo
19 October 2016, 22:27:15
Quote from: texus on 19 October 2016, 13:38:51
maybe a flag could be added
Sounds good, like enumerator MenuBar::Direction {AUTO = 0, TOP, BOTTOM, LEFT, RIGHT};



Where can it be used?
ofc in game (Homebrew) \ non-game (Blender) editors or something similar
#5
Feature requests / Re: ListBox EditBox TextBox
19 October 2016, 22:18:45
Quote from: texus on 19 October 2016, 14:01:53
There are no lines in edit box and for setCaretPos and getCaretPos I have the same question as for TextBox.

Ok I understood your logic and it is true. So about (TextBox), editors (macros \ auto insert \ etc.) when I need to auto cut (replace by pattern or something else) some text I'll move text to parser (do something) and return formated text but text caret position is on the first line (char) and I'll need to scroll text to latest edited line.
#6
General Discussion / Re: Time for bugs. 6x combo
19 October 2016, 12:56:09
Quote from: texus on 19 October 2016, 12:34:19
Thanks for such a detailed bug report btw.

No prob. Thanks for fast reply)
#7
Feature requests / ListBox EditBox TextBox
19 October 2016, 12:52:13
ListBox
Need custom listbox item like a
tgui::ListBox::Ptr list = std::make_shared<tgui::ListBox>();

void ListBox::addItem<Widget>(std::shared_ptr<Widget> widget); //Or wiget arguments

std::shared_ptr<Widget> ListBox::getItem<Widget>(const size_t id); //Or const char *name

void ListBox::insertItem<Widget>(std::shared_ptr<Widget> widget, const size_t id); //Insert item betwen few other items

That provides editable items like a playlist item simplifies adding new buttons\text\images something else.

Music player
[TrackName]<Play><Stop><Options> //current played track
[TrackName] - <Play><Stop><Options> //hided buttons
[TrackName] - <Play><Stop><Options>
[TrackName] - <Play><Stop><Options>

Server list like a
[UserName]<KickButton><SendMessageButton><InviteButton>
[UserName]<KickButton><SendMessageButton><InviteButton>
[UserName]<KickButton><SendMessageButton><InviteButton>

EditBox
void EditBox::setCaretPos(const size_t char_pos);
size_t EditBox::getCaretPos() const;

void EditBox::setCaretLine(const size_t line_id); //move caret to line
size_t EditBox::getCaretLine() const;

size_t EditBox::getLinesCount() const; //return total lines (with \n)

TextBox
Same as EditBox

Usable for editors.
Thx for reading)

#8
General Discussion / Time for bugs. 6x combo
19 October 2016, 11:50:24
Hi Texus and community, we have a problem (houston.. pshhh pshhh).

Tests:
Win7 x64
Link type: Static\Dynamic
Target platform: x32\x64
SFML 2.4.0 x32 (Static\Dynamic)
TGUI 0.7.1 x32 (Static\Dynamic)

Tests on video:
Win7 x64
Link type: Dynamic
Target platform: x32
SFML 2.4.0 x32 (Static\Dynamic)
TGUI 0.7.1 x32 (Static\Dynamic)

Links:
Link on video bug-report.
//sorry for ugly video quality
https://dl.dropboxusercontent.com/u/71162716/TGUI%200.7.1%20Bugreport.mp4

Link on code.
https://pastebin.com/fRk2Cr7D

Error List:
0. Need to press and hold LMB on MenuBar to see subitems menu.
1. If MenuBar parent to HorizontalLayout or VerticalLayout we can't select its subitems.
2. EditBox caret isn't change self size when its parent to Vertical or Horizontal Layout its size binds to EditBox height. (not relative to text)
3. If MenuBar is last element in VerticalLayout (in the bottom on window) the subitems spawns under window area.
4. When MenuBar parenting latest to VerticalLayout its subitem menu spawns under window (ViewPort).
5. If we use EditBox::setText("asdasd\n\nasdasd\n\nasdasd") and try to select something we got hmm... uncorrect behaviour.




And finally I have a question: is it bugs or features or my broken hands?:D //Self-criticism