diff options
Diffstat (limited to 'game/client/gui')
| -rw-r--r-- | game/client/gui/background.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/bother.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/chat.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/crosshair.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/direct_connection.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/gui_screen.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/hotbar.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/imdraw_ext.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/language.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/main_menu.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/message_box.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/metrics.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/play_menu.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/progress_bar.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/scoreboard.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/settings.hh | 12 | ||||
| -rw-r--r-- | game/client/gui/splash.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/status_lines.hh | 4 | ||||
| -rw-r--r-- | game/client/gui/window_title.hh | 4 |
19 files changed, 4 insertions, 80 deletions
diff --git a/game/client/gui/background.hh b/game/client/gui/background.hh index 1974c34..5c72a3f 100644 --- a/game/client/gui/background.hh +++ b/game/client/gui/background.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_BACKGROUND_HH -#define CLIENT_BACKGROUND_HH 1 #pragma once namespace gui::background @@ -8,5 +6,3 @@ void init(void); void shutdown(void); void layout(void); } // namespace gui::background - -#endif // CLIENT_BACKGROUND_HH diff --git a/game/client/gui/bother.hh b/game/client/gui/bother.hh index f555d74..c83294c 100644 --- a/game/client/gui/bother.hh +++ b/game/client/gui/bother.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_BOTHER_HH -#define CLIENT_BOTHER_HH 1 #pragma once namespace gui @@ -22,5 +20,3 @@ void update_late(void); void ping(unsigned int identity, std::string_view host, std::uint16_t port); void cancel(unsigned int identity); } // namespace gui::bother - -#endif // CLIENT_BOTHER_HH diff --git a/game/client/gui/chat.hh b/game/client/gui/chat.hh index b56681e..6a3ea33 100644 --- a/game/client/gui/chat.hh +++ b/game/client/gui/chat.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_CHAT_HH -#define CLIENT_CHAT_HH 1 #pragma once namespace gui::client_chat @@ -17,5 +15,3 @@ void clear(void); void refresh_timings(void); void print(const std::string& string); } // namespace gui::client_chat - -#endif // CLIENT_CHAT_HH diff --git a/game/client/gui/crosshair.hh b/game/client/gui/crosshair.hh index d29a661..589727e 100644 --- a/game/client/gui/crosshair.hh +++ b/game/client/gui/crosshair.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_CROSSHAIR_HH -#define CLIENT_CROSSHAIR_HH 1 #pragma once namespace gui::crosshair @@ -8,5 +6,3 @@ void init(void); void shutdown(void); void layout(void); } // namespace gui::crosshair - -#endif // CLIENT_CROSSHAIR_HH diff --git a/game/client/gui/direct_connection.hh b/game/client/gui/direct_connection.hh index 7331843..aa02d7c 100644 --- a/game/client/gui/direct_connection.hh +++ b/game/client/gui/direct_connection.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_DIRECT_CONNECTION_HH -#define CLIENT_DIRECT_CONNECTION_HH 1 #pragma once namespace gui::direct_connection @@ -7,5 +5,3 @@ namespace gui::direct_connection void init(void); void layout(void); } // namespace gui::direct_connection - -#endif // CLIENT_DIRECT_CONNECTION_HH diff --git a/game/client/gui/gui_screen.hh b/game/client/gui/gui_screen.hh index b36e6b2..2eae310 100644 --- a/game/client/gui/gui_screen.hh +++ b/game/client/gui/gui_screen.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_GUI_SCREEN_HH -#define CLIENT_GUI_SCREEN_HH 1 #pragma once constexpr static unsigned int GUI_SCREEN_NONE = 0x0000U; @@ -10,5 +8,3 @@ constexpr static unsigned int GUI_PROGRESS_BAR = 0x0004U; constexpr static unsigned int GUI_MESSAGE_BOX = 0x0005U; constexpr static unsigned int GUI_CHAT = 0x0006U; constexpr static unsigned int GUI_DIRECT_CONNECTION = 0x0007U; - -#endif // CLIENT_GUI_SCREEN_HH diff --git a/game/client/gui/hotbar.hh b/game/client/gui/hotbar.hh index 4712ee5..85d75aa 100644 --- a/game/client/gui/hotbar.hh +++ b/game/client/gui/hotbar.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_HOTBAR_HH -#define CLIENT_HOTBAR_HH 1 #pragma once #include "shared/types.hh" @@ -27,5 +25,3 @@ namespace gui::hotbar void next_slot(void); void prev_slot(void); } // namespace gui::hotbar - -#endif // CLIENT_HOTBAR_HH diff --git a/game/client/gui/imdraw_ext.hh b/game/client/gui/imdraw_ext.hh index 664b702..a7e1503 100644 --- a/game/client/gui/imdraw_ext.hh +++ b/game/client/gui/imdraw_ext.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_IMDRAW_EXT_HH -#define CLIENT_IMDRAW_EXT_HH 1 #pragma once namespace gui::imdraw_ext @@ -17,5 +15,3 @@ void text_shadow_w(const std::string& text, const ImVec2& position, ImU32 text_c void text_shadow_w(const std::string& text, const ImVec2& position, ImU32 text_color, ImU32 shadow_color, ImFont* font, ImDrawList* draw_list, float font_size, float wrap_width); } // namespace gui::imdraw_ext - -#endif // CLIENT_IMDRAW_EXT_HH diff --git a/game/client/gui/language.hh b/game/client/gui/language.hh index 37cc790..90132d7 100644 --- a/game/client/gui/language.hh +++ b/game/client/gui/language.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_LANGUAGE_HH -#define CLIENT_LANGUAGE_HH 1 #pragma once namespace gui @@ -42,5 +40,3 @@ namespace gui::language std::string_view resolve(std::string_view key); std::string resolve_gui(std::string_view key); } // namespace gui::language - -#endif // CLIENT_LANGUAGE_HH diff --git a/game/client/gui/main_menu.hh b/game/client/gui/main_menu.hh index c93e284..205f078 100644 --- a/game/client/gui/main_menu.hh +++ b/game/client/gui/main_menu.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_MAIN_MENU_HH -#define CLIENT_MAIN_MENU_HH 1 #pragma once namespace gui::main_menu @@ -8,5 +6,3 @@ void init(void); void shutdown(void); void layout(void); } // namespace gui::main_menu - -#endif // CLIENT_MAIN_MENU_HH diff --git a/game/client/gui/message_box.hh b/game/client/gui/message_box.hh index a906744..74a6fbf 100644 --- a/game/client/gui/message_box.hh +++ b/game/client/gui/message_box.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_MESSAGE_BOX_HH -#define CLIENT_MESSAGE_BOX_HH 1 #pragma once namespace gui @@ -20,5 +18,3 @@ void set_title(std::string_view title); void set_subtitle(std::string_view subtitle); void add_button(std::string_view text, const message_box_action& action); } // namespace gui::message_box - -#endif // CLIENT_MESSAGE_BOX_HH diff --git a/game/client/gui/metrics.hh b/game/client/gui/metrics.hh index 57e1108..4898332 100644 --- a/game/client/gui/metrics.hh +++ b/game/client/gui/metrics.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_METRICS_HH -#define CLIENT_METRICS_HH 1 #pragma once namespace gui::metrics @@ -7,5 +5,3 @@ namespace gui::metrics void init(void); void layout(void); } // namespace gui::metrics - -#endif // CLIENT_METRICS_HH diff --git a/game/client/gui/play_menu.hh b/game/client/gui/play_menu.hh index f63d27e..1b1f003 100644 --- a/game/client/gui/play_menu.hh +++ b/game/client/gui/play_menu.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_PLAY_MENU_HH -#define CLIENT_PLAY_MENU_HH 1 #pragma once namespace gui::play_menu @@ -9,5 +7,3 @@ void shutdown(void); void layout(void); void update_late(void); } // namespace gui::play_menu - -#endif // CLIENT_PLAY_MENU_HH diff --git a/game/client/gui/progress_bar.hh b/game/client/gui/progress_bar.hh index 79fdcb5..7a0581d 100644 --- a/game/client/gui/progress_bar.hh +++ b/game/client/gui/progress_bar.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_PROGRESS_BAR_HH -#define CLIENT_PROGRESS_BAR_HH 1 #pragma once namespace gui @@ -19,5 +17,3 @@ void reset(void); void set_title(std::string_view title); void set_button(std::string_view text, const progress_bar_action& action); } // namespace gui::progress_bar - -#endif // CLIENT_PROGRESS_BAR_HH diff --git a/game/client/gui/scoreboard.hh b/game/client/gui/scoreboard.hh index af77ae2..320e185 100644 --- a/game/client/gui/scoreboard.hh +++ b/game/client/gui/scoreboard.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_SCOREBOARD_HH -#define CLIENT_SCOREBOARD_HH 1 #pragma once namespace gui::scoreboard @@ -7,5 +5,3 @@ namespace gui::scoreboard void init(void); void layout(void); } // namespace gui::scoreboard - -#endif // CLIENT_SCOREBOARD_HH diff --git a/game/client/gui/settings.hh b/game/client/gui/settings.hh index d807bc4..efb8ca4 100644 --- a/game/client/gui/settings.hh +++ b/game/client/gui/settings.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_SETTINGS_HH -#define CLIENT_SETTINGS_HH 1 #pragma once namespace config @@ -55,8 +53,8 @@ void add_checkbox(int priority, config::Boolean& value, settings_location locati namespace settings { void add_input(int priority, config::Int& value, settings_location location, std::string_view name, bool tooltip); -void add_input( - int priority, config::Float& value, settings_location location, std::string_view name, bool tooltip, std::string_view fmt = "%.3f"); +void add_input(int priority, config::Float& value, settings_location location, std::string_view name, bool tooltip, + std::string_view fmt = "%.3f"); void add_input(int priority, config::Unsigned& value, settings_location location, std::string_view name, bool tooltip); void add_input(int priority, config::String& value, settings_location location, std::string_view name, bool tooltip, bool allow_whitespace); } // namespace settings @@ -64,8 +62,8 @@ void add_input(int priority, config::String& value, settings_location location, namespace settings { void add_slider(int priority, config::Int& value, settings_location location, std::string_view name, bool tooltip); -void add_slider( - int priority, config::Float& value, settings_location location, std::string_view name, bool tooltip, std::string_view format = "%.3f"); +void add_slider(int priority, config::Float& value, settings_location location, std::string_view name, bool tooltip, + std::string_view format = "%.3f"); void add_slider(int priority, config::Unsigned& value, settings_location location, std::string_view name, bool tooltip); } // namespace settings @@ -90,5 +88,3 @@ namespace settings { void add_language_select(int priority, settings_location location, std::string_view name); } // namespace settings - -#endif // CLIENT_SETTINGS_HH diff --git a/game/client/gui/splash.hh b/game/client/gui/splash.hh index 7a032ad..3ce63e4 100644 --- a/game/client/gui/splash.hh +++ b/game/client/gui/splash.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_SPLASH_HH -#define CLIENT_SPLASH_HH 1 #pragma once namespace gui::client_splash @@ -8,5 +6,3 @@ void init(void); void init_late(void); void render(void); } // namespace gui::client_splash - -#endif // CLIENT_SPLASH_HH diff --git a/game/client/gui/status_lines.hh b/game/client/gui/status_lines.hh index 907cdfc..c86e248 100644 --- a/game/client/gui/status_lines.hh +++ b/game/client/gui/status_lines.hh @@ -1,5 +1,3 @@ -#ifndef CLIENT_STATUS_LINES_HH -#define CLIENT_STATUS_LINES_HH 1 #pragma once namespace gui @@ -21,5 +19,3 @@ namespace gui::status_lines void set(unsigned int line, const std::string& text, const ImVec4& color, float fadeout); void unset(unsigned int line); } // namespace gui::status_lines - -#endif // CLIENT_STATUS_LINES_HH diff --git a/game/client/gui/window_title.hh b/game/client/gui/window_title.hh index a6fe4ec..af1ab7c 100644 --- a/game/client/gui/window_title.hh +++ b/game/client/gui/window_title.hh @@ -1,10 +1,6 @@ -#ifndef CLIENT_WINDOW_TITLE_HH -#define CLIENT_WINDOW_TITLE_HH 1 #pragma once namespace gui::window_title { void update(void); } // namespace gui::window_title - -#endif // CLIENT_WINDOW_TITLE_HH |
