- Timestamp:
- Dec 24, 2012, 10:13:43 PM (12 years ago)
- Branches:
- master
- Children:
- baaf6c8
- Parents:
- cdb4bec
- git-author:
- Dmitry Portnoy <dportnoy@…> (12/24/12 22:11:06)
- git-committer:
- Dmitry Portnoy <dmp1488@…> (12/24/12 22:13:43)
- Location:
- client
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
client/Client/Button.cpp
rcdb4bec r3f5616f 20 20 21 21 al_draw_text(font, al_map_rgb(0, 255, 0), this->width/2, (this->height-fontHeight)/2, ALLEGRO_ALIGN_CENTRE, str.c_str()); 22 al_draw_rectangle(1, 1, this->width, this->height, al_map_rgb(0, 255, 0), 1); 22 23 #ifdef WINDOWS 24 al_draw_rectangle(1, 1, this->width, this->height, al_map_rgb(0, 255, 0), 1); 25 #else 26 al_draw_rectangle(1, 0, this->width, this->height-1, al_map_rgb(0, 255, 0), 1); 27 #endif 23 28 24 29 al_set_target_bitmap(al_get_backbuffer(display)); -
client/Client/Textbox.cpp
rcdb4bec r3f5616f 68 68 69 69 al_draw_text(font, al_map_rgb(0, 255, 0), textPos, (this->height-fontHeight)/2, ALLEGRO_ALIGN_LEFT, str.c_str()); 70 al_draw_rectangle(1, 1, this->width, this->height, al_map_rgb(0, 255, 0), 1); 70 71 #ifdef WINDOWS 72 al_draw_rectangle(1, 1, this->width, this->height, al_map_rgb(0, 255, 0), 1); 73 #else 74 al_draw_rectangle(1, 0, this->width, this->height-1, al_map_rgb(0, 255, 0), 1); 75 #endif 71 76 72 77 al_set_target_bitmap(al_get_backbuffer(display)); -
client/makefile
rcdb4bec r3f5616f 1 gameClient : ../common/Message.cpp Client/main.cpp 2 g++ -o $@ $? 1 CC = g++ 2 LIB_FLAGS = `pkg-config --cflags --libs --static allegro-static-5.0 allegro_ttf-static-5.0 allegro_primitives-static-5.0` 3 FLAGS = $(LIB_FLAGS) 4 COMMON_PATH = ../common 5 DEPENDENCIES = Message.o chat.o GuiComponent.o Window.o Textbox.o Button.o 6 7 gameClient : Client/main.cpp $(DEPENDENCIES) 8 $(CC) -o $@ $+ $(FLAGS) 9 10 Message.o : $(COMMON_PATH)/Message.cpp 11 $(CC) -c -o $@ $? $(FLAGS) 12 13 %.o : Client/%.cpp 14 $(CC) -c -o $@ $? $(FLAGS) 15 16 clean: 17 rm *.o 18 rm gameClient
Note:
See TracChangeset
for help on using the changeset viewer.