2020-05-09 14:45:23 +00:00
|
|
|
// Control here whether to inline all resources or instead load them
|
|
|
|
|
@function uiResource($pth) {
|
|
|
|
|
@if (str-index($string: $pth, $substring: ".noinline")) {
|
|
|
|
|
@return resolve($pth);
|
|
|
|
|
}
|
|
|
|
|
@return inline($pth);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@import "icons";
|
|
|
|
|
@import "trigonometry";
|
|
|
|
|
@import "material_colors";
|
|
|
|
|
@import "dynamic_ui";
|
|
|
|
|
@import "variables";
|
|
|
|
|
|
|
|
|
|
@import "mixins";
|
|
|
|
|
@import "common";
|
|
|
|
|
@import "animations";
|
|
|
|
|
@import "game_state";
|
|
|
|
|
@import "application_error";
|
|
|
|
|
@import "textual_game_state";
|
|
|
|
|
@import "adinplay";
|
|
|
|
|
|
|
|
|
|
@import "states/preload";
|
|
|
|
|
@import "states/main_menu";
|
|
|
|
|
@import "states/ingame";
|
2020-05-19 07:14:40 +00:00
|
|
|
@import "states/keybindings";
|
2020-05-17 10:46:51 +00:00
|
|
|
@import "states/settings";
|
2020-05-19 07:14:40 +00:00
|
|
|
@import "states/about";
|
2020-05-23 07:13:42 +00:00
|
|
|
@import "states/mobile_warning";
|
2020-05-09 14:45:23 +00:00
|
|
|
|
|
|
|
|
@import "ingame_hud/buildings_toolbar";
|
|
|
|
|
@import "ingame_hud/building_placer";
|
|
|
|
|
@import "ingame_hud/beta_overlay";
|
|
|
|
|
@import "ingame_hud/keybindings_overlay";
|
|
|
|
|
@import "ingame_hud/unlock_notification";
|
|
|
|
|
@import "ingame_hud/shop";
|
|
|
|
|
@import "ingame_hud/game_menu";
|
|
|
|
|
@import "ingame_hud/dialogs";
|
2020-05-10 16:24:50 +00:00
|
|
|
@import "ingame_hud/mass_selector";
|
2020-05-13 10:57:18 +00:00
|
|
|
@import "ingame_hud/vignette_overlay";
|
2020-05-13 16:04:51 +00:00
|
|
|
@import "ingame_hud/statistics";
|
2020-05-14 11:29:42 +00:00
|
|
|
@import "ingame_hud/pinned_shapes";
|
2020-05-16 10:43:11 +00:00
|
|
|
@import "ingame_hud/notifications";
|
2020-05-16 15:57:25 +00:00
|
|
|
@import "ingame_hud/settings_menu";
|
2020-05-18 10:53:01 +00:00
|
|
|
@import "ingame_hud/debug_info";
|
2020-05-18 20:08:33 +00:00
|
|
|
@import "ingame_hud/entity_debugger";
|
2020-05-09 14:45:23 +00:00
|
|
|
|
2020-05-16 20:45:40 +00:00
|
|
|
// prettier-ignore
|
|
|
|
|
$elements:
|
|
|
|
|
// Base
|
|
|
|
|
ingame_Canvas,
|
|
|
|
|
ingame_VignetteOverlay,
|
|
|
|
|
|
|
|
|
|
// Ingame overlays
|
|
|
|
|
ingame_HUD_PlacementHints,
|
|
|
|
|
ingame_HUD_PlacerVariants,
|
|
|
|
|
|
|
|
|
|
// Regular hud
|
|
|
|
|
ingame_HUD_PinnedShapes,
|
|
|
|
|
ingame_HUD_buildings_toolbar,
|
|
|
|
|
ingame_HUD_GameMenu,
|
|
|
|
|
ingame_HUD_KeybindingOverlay,
|
|
|
|
|
ingame_HUD_Notifications,
|
2020-05-17 08:07:20 +00:00
|
|
|
ingame_HUD_MassSelector,
|
2020-05-18 10:53:01 +00:00
|
|
|
ingame_HUD_DebugInfo,
|
2020-05-18 20:08:33 +00:00
|
|
|
ingame_HUD_EntityDebugger,
|
2020-05-16 20:45:40 +00:00
|
|
|
|
|
|
|
|
// Overlays
|
|
|
|
|
ingame_HUD_BetaOverlay,
|
|
|
|
|
|
|
|
|
|
// Dialogs
|
2020-05-17 11:24:47 +00:00
|
|
|
ingame_HUD_UnlockNotification,
|
2020-05-16 20:45:40 +00:00
|
|
|
ingame_HUD_Shop,
|
|
|
|
|
ingame_HUD_Statistics,
|
2020-05-21 08:40:21 +00:00
|
|
|
ingame_HUD_SettingsMenu,
|
|
|
|
|
ingame_HUD_ModalDialogs;
|
2020-05-09 14:45:23 +00:00
|
|
|
|
|
|
|
|
$zindex: 100;
|
|
|
|
|
|
|
|
|
|
@each $elem in $elements {
|
|
|
|
|
##{$elem} {
|
|
|
|
|
z-index: $zindex;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$zindex: $zindex + 10;
|
|
|
|
|
}
|
2020-05-13 08:41:00 +00:00
|
|
|
|
|
|
|
|
body.uiHidden {
|
|
|
|
|
#ingame_HUD_buildings_toolbar,
|
2020-05-16 20:45:40 +00:00
|
|
|
#ingame_HUD_PlacementHints,
|
2020-05-13 08:41:00 +00:00
|
|
|
#ingame_HUD_GameMenu,
|
2020-05-14 11:29:42 +00:00
|
|
|
#ingame_HUD_MassSelector,
|
2020-05-16 15:57:25 +00:00
|
|
|
#ingame_HUD_PinnedShapes,
|
|
|
|
|
#ingame_HUD_Notifications {
|
2020-05-13 08:41:00 +00:00
|
|
|
display: none !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-05-16 15:57:25 +00:00
|
|
|
|
|
|
|
|
body.modalDialogActive,
|
2020-05-22 11:12:07 +00:00
|
|
|
body.externalAdOpen,
|
2020-05-14 11:29:42 +00:00
|
|
|
body.ingameDialogOpen {
|
2020-05-19 13:03:13 +00:00
|
|
|
> *:not(.ingameDialog):not(.modalDialogParent):not(.loadingDialog):not(.gameLoadingOverlay):not(#ingame_HUD_ModalDialogs) {
|
2020-05-16 15:57:25 +00:00
|
|
|
filter: blur(5px) !important;
|
2020-05-14 11:29:42 +00:00
|
|
|
}
|
|
|
|
|
}
|