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.


Topics - Hexile

Pages: [1]
1
Help requests / Converting TGUI 0.6 project to TGUI 0.8.5
« on: 11 August 2019, 04:14:03 »
So a while back I was working on something using TGUI 0.6 and now i'd like to move onto TGUI 0.8 only grabbing the basic import and event setup.

However, as there is still documentation missing. I'm not sure how to do this.

Should i really go back to 0.6 ?  :-\

i've attached the source of the old project after removing parts that were too similar.

2
Feature requests / TGUI builder 0.8.5 - missing vertical slider
« on: 10 August 2019, 20:45:27 »
Hi. The option is missing. did it get removed from the builder?

Also; If possible, it would be nice if we could set the angles of scrollbars, sliders, etc.

3
Installation help / Project migration issue on VS2015
« on: 19 August 2016, 21:22:09 »
Ok, i'm not sure what's going on here.

I went from VS2013, TGUI 0.6.9 and SFML 2.3.2 to VS2015, TGUI 0.7.1 and SFML 2.4.0 between 2 different computers with very different configurations.

Anyhow, there is a really odd issue that prevents me from compiling my project:
Code: [Select]
sf::RenderWindow window(sf::VideoMode(960, 600), "RexKeyPad");
tgui::Gui gui(window);

if (gui.setGlobalFont("data/DroidSansMono.ttf") == false)
return 1;

Quote
Severity   Code   Description   Project   File   Line   Suppression State
Error (active)      class "tgui::Gui" has no member "setGlobalFont"   RexKeyPad   c:\DEV\RexKeyPad\RexKeyPad\Main.cpp   107   

Any TGUI code beyond the IF above fails with various errors which wouldn't normally exist.

I have triple checked all sorts of path, include, lib etc configurations but can't find the cause. Any help would be appreciated

4
Help requests / Trouble syncing scrollbar and knob widgets
« on: 14 December 2015, 02:31:30 »
I have 8 knobs and 8 scrollbars in my project but i keep running into issues when i try to sync them.

Working:
Default/Inverted Mode: Knob operates Scrollbar
Inverted Mode: Knob operates Scrollbar
Not working:
Default Mode: Scrollbar operates Knob


How can i correctly sync changes between them?


Interesting bits of code:

Code: [Select]
const int vertical_control_separator = 100;

tgui::Scrollbar::Ptr scrollbar(gui);
scrollbar->load(THEME_CONFIG_FILE);
scrollbar->setVerticalScroll(true);
scrollbar->setPosition(20, 20);
scrollbar->setSize(18, 256);
scrollbar->setMaximum(127);
scrollbar->setLowValue(8);

tgui::Knob::Ptr knob(gui);
knob->load("data/widgets/Knob/Knob.conf");
knob->setPosition(55, 235);
knob->setSize(40, 40);
knob->setStartRotation(127);
knob->setValue(0);
knob->setEndRotation(-128);

Code: [Select]
/* Callback handling*/
#define Knob_CALLBACK_ID 10
#define KnobScroll_CALLBACK_ID 20

bool invert_Knob_SYNC=false;

knob->bindCallback(tgui::Knob::ValueChanged);
knob->setCallbackId(Knob_CALLBACK_ID +1);

syncbox->bindCallback(tgui::Checkbox::Checked);
syncbox->bindCallback(tgui::Checkbox::Unchecked);
syncbox->setCallbackId(Knob_CALLBACK_ID + 9);

scrollbar->bindCallback(tgui::Scrollbar::ValueChanged);
scrollbar->setCallbackId(KnobScroll_CALLBACK_ID + 1);

Code: [Select]
int value;

switch(callback.id)
{
// Knobs
case Knob_CALLBACK_ID + 1:
{
value=knob->getValue();

if (invert_Knob_SYNC == true) scrollbar->setValue(value / 3); // works but sync is flipped
else scrollbar->setValue((128 - 8) - (value / 3)); // default ( offset fixed)
break;
}
Code: [Select]
case Knob_CALLBACK_ID + 9:
{
invert_Knob_SYNC = !invert_Knob_SYNC;
break;
}
Code: [Select]
case KnobScroll_CALLBACK_ID + 1:
{
value = scrollbar->getValue();

if (invert_Knob_SYNC == true) knob8->setValue(value * 3); // works but sync is flipped
//else knob->setValue(? ); // broken
break;
}

5
Help requests / instant runtime hanging with LoadFromFile example
« on: 13 December 2015, 17:53:17 »
Hi. this example hangs during runtime, below is info from VS debugger.

  • VS2015
  • TGUI 0.69 (VC12 32bit)
  • SFML 2.3.2 (VC14 32bit)
Code: [Select]
Unhandled exception at 0x00E82707 (sfml-system-d-2.dll) in tgui-test.exe: 0xC0000005: Access violation reading location 0xCCCCCCD8.
Exception thrown at 0x00E82707 (sfml-system-d-2.dll) in tgui-test.exe: 0xC0000005: Access violation reading location 0xCCCCCCD8.

Is there some details i have missed?

Pages: [1]