Compare commits
2 commits
a4e158930d
...
3ceabd50eb
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3ceabd50eb | ||
![]() |
fbecc9f684 |
23
modules/wave_survival/heads_up_display.cpp
Normal file
23
modules/wave_survival/heads_up_display.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "heads_up_display.h"
|
||||
|
||||
void HeadsUpDisplay::_bind_methods() {
|
||||
}
|
||||
|
||||
void HeadsUpDisplay::enter_tree() {
|
||||
}
|
||||
|
||||
void HeadsUpDisplay::_notification(int what) {
|
||||
if (Engine::get_singleton()->is_editor_hint()) {
|
||||
return;
|
||||
}
|
||||
switch (what) {
|
||||
default:
|
||||
return;
|
||||
case NOTIFICATION_ENTER_TREE:
|
||||
enter_tree();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void HeadsUpDisplay::set_reticle_visibility(bool visible) {
|
||||
}
|
21
modules/wave_survival/heads_up_display.h
Normal file
21
modules/wave_survival/heads_up_display.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#ifndef HEADS_UP_DISPLAY_H
|
||||
#define HEADS_UP_DISPLAY_H
|
||||
|
||||
#include "scene/gui/control.h"
|
||||
|
||||
class HeadsUpDisplay : public Control {
|
||||
GDCLASS(HeadsUpDisplay, Control);
|
||||
static void _bind_methods();
|
||||
void on_child_entered(Node *node);
|
||||
void enter_tree();
|
||||
protected:
|
||||
void _notification(int what);
|
||||
|
||||
public:
|
||||
void set_reticle_visibility(bool visible);
|
||||
|
||||
private:
|
||||
Control *reticle{ nullptr };
|
||||
};
|
||||
|
||||
#endif // !HEADS_UP_DISPLAY_H
|
48
project/assets/gui/reticle.svg
Normal file
48
project/assets/gui/reticle.svg
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="1.3229166mm"
|
||||
height="1.3229166mm"
|
||||
viewBox="0 0 1.3229166 1.3229166"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)"
|
||||
sodipodi:docname="reticle.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview1"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#999999"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:zoom="234.44399"
|
||||
inkscape:cx="2.6872089"
|
||||
inkscape:cy="1.8511884"
|
||||
inkscape:window-width="2540"
|
||||
inkscape:window-height="1394"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:current-layer="layer1" />
|
||||
<defs
|
||||
id="defs1" />
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<circle
|
||||
style="fill:#ffffff;fill-opacity:1;stroke-width:0;stroke-linecap:round;stroke-linejoin:round"
|
||||
id="path1"
|
||||
cx="0.66145831"
|
||||
cy="0.66145831"
|
||||
r="0.66121006" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.4 KiB |
43
project/assets/gui/reticle.svg.import
Normal file
43
project/assets/gui/reticle.svg.import
Normal file
|
@ -0,0 +1,43 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dc26l1ync7env"
|
||||
path="res://.godot/imported/reticle.svg-8e7aee022e128e073b099001e1733742.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/gui/reticle.svg"
|
||||
dest_files=["res://.godot/imported/reticle.svg-8e7aee022e128e073b099001e1733742.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
Loading…
Reference in a new issue