comparison librpg/rpg/battle-state-victory.c @ 241:76afe639fd72

misc: add support for NLS, closes #22510 @4h While here cleanup the path functions in sys.c/sys.h
author David Demelier <markand@malikania.fr>
date Sat, 28 Nov 2020 18:00:05 +0100
parents befa2e855d3b
children
comparison
equal deleted inserted replaced
240:d7e5e02f70a1 241:76afe639fd72
27 27
28 #include "battle.h" 28 #include "battle.h"
29 #include "battle-state.h" 29 #include "battle-state.h"
30 #include "battle-state-closing.h" 30 #include "battle-state-closing.h"
31 #include "battle-state-victory.h" 31 #include "battle-state-victory.h"
32 #include "rpg_p.h"
32 33
33 struct victory { 34 struct victory {
34 struct battle_state self; 35 struct battle_state self;
35 struct message msg; 36 struct message msg;
36 }; 37 };
82 vic->self.data = vic; 83 vic->self.data = vic;
83 vic->self.handle = handle; 84 vic->self.handle = handle;
84 vic->self.update = update; 85 vic->self.update = update;
85 vic->self.draw = draw; 86 vic->self.draw = draw;
86 87
87 vic->msg.text[0] = "Victory!"; 88 vic->msg.text[0] = _("Victory!");
88 vic->msg.theme = bt->theme; 89 vic->msg.theme = bt->theme;
89 vic->msg.flags = MESSAGE_FLAGS_AUTOMATIC | 90 vic->msg.flags = MESSAGE_FLAGS_AUTOMATIC |
90 MESSAGE_FLAGS_FADEIN | 91 MESSAGE_FLAGS_FADEIN |
91 MESSAGE_FLAGS_FADEOUT; 92 MESSAGE_FLAGS_FADEOUT;
92 vic->msg.timeout = MESSAGE_TIMEOUT_DEFAULT; 93 vic->msg.timeout = MESSAGE_TIMEOUT_DEFAULT;