Pages: 1
  Print  
Author Topic: Dialogs in Enigma  (Read 3801 times)
Offline (Unknown gender) fervi
Posted on: July 10, 2016, 07:00:50 pm
Member
Joined: Feb 2013
Posts: 78

View Profile Email
Hello

Is the function of the type of show_message needs to be set in the Game Settings -> Enima -> API -> Widgets -> GTK +
?

Because if so, should review and improve (if these functions operate) Enigma code in order to patch holes. show_message (etc.) is very important in my opinion function, which unfortunately does not work.

Fervi
________
eobjs/Linux/Linux/Run/Universal_System/Extensions/ParticleSystems/PS_particle_attractor.o /home/fervi/.enigma/.eobjs/Linux/Linux/Run/Universal_System/Extensions/ParticleSystems/PS_effects.o /home/fervi/.enigma/.eobjs/Linux/Linux/Run/Universal_System/Extensions/Timelines/timelines.o /home/fervi/.enigma/.eobjs/Linux/Linux/Run/Bridges/xlib-OpenGL1/graphics_bridge.o  -lz -lpthread -lX11 -lGL -lGLU -lopenal -lalure -lvorbisfile -lvorbis -ldumb -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lgthread-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lz
/home/fervi/.enigma/.eobjs/Linux/Linux/Run/SHELLmain.o: In function `enigma::ENIGMA_events()':
SHELLmain.cpp:(.text+0x1625): undefined reference to `enigma_user::show_info(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int, int, int, bool, bool, bool, bool, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
collect2: error: ld returned 1 exit status
_______
Logged
Offline (Male) faissaloo
Reply #1 Posted on: July 11, 2016, 04:44:27 am

Contributor
Location: Britbongistan
Joined: Jan 2013
Posts: 87

View Profile WWW Email
For now open ~/enigma-dev/ENIGMAsystem/SHELL/Widget_Systems/GTK+/dialogs.cpp and copy and paste this at the beginning:
Code: [Select]
namespace enigma_user {
void show_info(string info, int bgcolor, int left, int top, int width, int height, bool embedGameWindow, bool
showBorder, bool allowResize, bool stayOnTop, bool pauseGame, string caption) {
//TODO: Implement
}
}
It should compile after that.
« Last Edit: July 11, 2016, 05:34:22 am by faissaloo » Logged
Offline (Unknown gender) fervi
Reply #2 Posted on: July 14, 2016, 04:06:40 pm
Member
Joined: Feb 2013
Posts: 78

View Profile Email
Thanks, but all the code GTK does not work ...

Fervi
Logged
Offline (Male) faissaloo
Reply #3 Posted on: July 14, 2016, 04:53:29 pm

Contributor
Location: Britbongistan
Joined: Jan 2013
Posts: 87

View Profile WWW Email
I'll open an issue.
Logged
Pages: 1
  Print