![]() |
|
This thread is locked; no one can reply to it.
![]() ![]() |
1
2
|
Allegro gui -problem |
pawel559 pawel559
Member #8,319
February 2007
![]() |
Hi |
CGamesPlay
Member #2,559
July 2002
![]() |
You can call this function with your currently active bitmap:gui_set_screen(page1); -- Ryan Patterson - <http://cgamesplay.com/> |
pawel559 pawel559
Member #8,319
February 2007
![]() |
Nothing change. #include <iostream> /***************************************/ void loadimage(char* name); if(rysuj==true){blit(surface, active_page, a, b, x,y, w, h);} } } DIALOG the_dialog[] = }; //init allegro install_timer(); set_color_depth(16); /* now create two video memory bitmaps for the page flipping */ /////////////// image.loadimage("a.bmp"); gui_fg_color = makecol(0, 0, 0); while(true) // clear_bitmap(active_page); do_dialog(the_dialog, -1); if(key[KEY_ESC])break; // } image.free(); |
CGamesPlay
Member #2,559
July 2002
![]() |
You set the gui screen to the bitmap on the screen. Don't do that. Set it to the back page, the same one that you do all your drawing to. -- Ryan Patterson - <http://cgamesplay.com/> |
Kitty Cat
Member #2,815
October 2002
![]() |
And do_dialog is blocking. It won't return until the dialog is closed. -- |
pawel559 pawel559
Member #8,319
February 2007
![]() |
I am not very good speak english ,and I don't understandt evrythink. |
CGamesPlay
Member #2,559
July 2002
![]() |
I said to do this: show_video_bitmap(active_page); if (active_page == page1) active_page = page2; else active_page = page1; gui_set_screen(active_page); KittyCat says to not use do_dialog and instead use these functions. You need to figure out how to use them yourself: DIALOG_PLAYER *player = init_dialog(the_dialog, -1); if(!update_dialog(player)) { // Do something with the dialog data shutdown_dialog(player); }
-- Ryan Patterson - <http://cgamesplay.com/> |
pawel559 pawel559
Member #8,319
February 2007
![]() |
Now I have other problem ,just look at that http://emugames.cba.pl/file.7z |
CGamesPlay
Member #2,559
July 2002
![]() |
Err, no. I don't have 7z, so I won't even speculate as to whether you gave a description of the problem. -- Ryan Patterson - <http://cgamesplay.com/> |
pawel559 pawel559
Member #8,319
February 2007
![]() |
Now the dialog is flashing. |
Kitty Cat
Member #2,815
October 2002
![]() |
Yes, because the dialog only draws once (on whichever bitmap was active at the time) until something makes it draw again. If you're not using a double buffer, you can call: -- |
pawel559 pawel559
Member #8,319
February 2007
![]() |
It is work ! |
CGamesPlay
Member #2,559
July 2002
![]() |
You're welcome, but be warned! We expect to see a completed game from you, with screenshots, soon! -- Ryan Patterson - <http://cgamesplay.com/> |
pawel559 pawel559
Member #8,319
February 2007
![]() |
I have one more question . My code: |
CGamesPlay
Member #2,559
July 2002
![]() |
The height of the font is constant. You have to make a bigger font yourself -- Ryan Patterson - <http://cgamesplay.com/> |
pawel559 pawel559
Member #8,319
February 2007
![]() |
Do you now any other GUI libary for allegro which can do that ? |
CGamesPlay
Member #2,559
July 2002
![]() |
Well if you find a program called "ttf2pcx" on the net and use that to make a font that Allegro can read, you can make fonts as big as you like. -- Ryan Patterson - <http://cgamesplay.com/> |
miran
Member #2,407
June 2002
|
Quote: Do you now any other GUI libary for allegro which can do that ?
Plug! Third link in my sig. -- |
pawel559 pawel559
Member #8,319
February 2007
![]() |
I am using GCC compiler and I tried instal a MASkinG but I have some problems in build libary. |
CGamesPlay
Member #2,559
July 2002
![]() |
You need to post the specific problems that you had. -- Ryan Patterson - <http://cgamesplay.com/> |
pawel559 pawel559
Member #8,319
February 2007
![]() |
In the console I see "Makefiles configured.Now go to the src directory and run 'make' and 'make install' ". But when I go to src directory there isn't any exe files which can be run .:P |
CGamesPlay
Member #2,559
July 2002
![]() |
Stay in the command prompt and run "make" and then run "make install". "Run" means "type in and then press enter" "make" is a program that comes with your compiler, it's used for automating the build process. Your IDE makes the Makefiles for you, so you don't have to. -- Ryan Patterson - <http://cgamesplay.com/> |
pawel559 pawel559
Member #8,319
February 2007
![]() |
when I run make.exe in the command line I see "*** No targets. Stop." . |
Kauhiz
Member #4,798
July 2004
|
You're running it from the correct directory? And just run "make", not "make.exe" --- |
pawel559 pawel559
Member #8,319
February 2007
![]() |
I try run make ,and the result was the same. |
|
1
2
|