mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
rebase
Former-commit-id: d40850ca70c5c833f17cba6a9f16de8c63bb5717
This commit is contained in:
parent
5362ac7289
commit
77397788e7
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2289,9 +2289,9 @@ dependencies = [
|
||||
"mio 0.6.16 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"mio-extras 2.0.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"rand 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"rayon 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.90 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde_derive 1.0.90 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"shred 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"specs 0.14.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"sphynx 0.1.0 (git+https://gitlab.com/veloren/sphynx.git)",
|
||||
"threadpool 1.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -102,6 +102,8 @@ widget_ids! {
|
||||
settings_title,
|
||||
settings_r,
|
||||
settings_l,
|
||||
settings_scrollbar,
|
||||
controls_text,
|
||||
//Contents
|
||||
button_help,
|
||||
button_help2,
|
||||
@ -548,12 +550,12 @@ impl Hud {
|
||||
ids,
|
||||
chat,
|
||||
settings_tab: SettingsTab::Interface,
|
||||
show_help: true,
|
||||
show_debug: false,
|
||||
show_help: false,
|
||||
show_debug: true,
|
||||
bag_open: false,
|
||||
menu_open: false,
|
||||
map_open: false,
|
||||
mmap_open: true,
|
||||
mmap_open: false,
|
||||
show_ui: true,
|
||||
inventorytest_button: false,
|
||||
inventory_space: 0,
|
||||
@ -1006,10 +1008,10 @@ impl Hud {
|
||||
|
||||
// X-button
|
||||
if Button::image(self.imgs.close_button)
|
||||
.w_h(4.0 * 4.0, 4.0 * 4.0)
|
||||
.w_h(28.0, 28.0)
|
||||
.hover_image(self.imgs.close_button_hover)
|
||||
.press_image(self.imgs.close_button_press)
|
||||
.top_right_with_margins_on(self.ids.bag_contents, 4.5, 4.5)
|
||||
.top_right_with_margins_on(self.ids.bag_contents, 0.0, 0.0)
|
||||
.set(self.ids.bag_close, ui_widgets)
|
||||
.was_clicked()
|
||||
{
|
||||
@ -1079,6 +1081,10 @@ impl Hud {
|
||||
.scroll_kids()
|
||||
.scroll_kids_vertically()
|
||||
.set(self.ids.settings_content, ui_widgets);
|
||||
Scrollbar::y_axis(self.ids.settings_content)
|
||||
.thickness(5.0)
|
||||
.rgba(0.33, 0.33, 0.33, 1.0)
|
||||
.set(self.ids.settings_scrollbar, ui_widgets);
|
||||
// X-Button
|
||||
if Button::image(self.imgs.close_button)
|
||||
.w_h(28.0, 28.0)
|
||||
@ -1237,7 +1243,75 @@ impl Hud {
|
||||
{
|
||||
self.settings_tab = SettingsTab::Controls;
|
||||
}
|
||||
if let SettingsTab::Controls = self.settings_tab {
|
||||
|
||||
Text::new(
|
||||
"Free Cursor: TAB \n\
|
||||
Toggle Help Window: F1 \n\
|
||||
Toggle Interface: F2 \n\
|
||||
Toggle FPS and Debug Info: F3 \n\
|
||||
\n\
|
||||
\n\
|
||||
Move Forward: W \n\
|
||||
Move Left : A \n\
|
||||
Move Right: S \n\
|
||||
Move Backwards: D \n\
|
||||
\n\
|
||||
Jump: Space \n\
|
||||
\n\
|
||||
Dodge: ?? \n\
|
||||
\n\
|
||||
Auto Walk: ?? \n\
|
||||
\n\
|
||||
Sheathe/Draw Weapons: Y \n\
|
||||
\n\
|
||||
Put on/Remove Helmet: ?? [Has a Cast time of 0,5s] \n\
|
||||
\n\
|
||||
\n\
|
||||
Basic Attack: L-Click \n\
|
||||
Secondary Attack/Block/Aim: R-Click \n\
|
||||
\n\
|
||||
\n\
|
||||
Skillbar Slot 1: 1 \n\
|
||||
Skillbar Slot 2: 2 \n\
|
||||
Skillbar Slot 3: 3 \n\
|
||||
Skillbar Slot 4: 4 \n\
|
||||
Skillbar Slot 5: 5 \n\
|
||||
Skillbar Slot 6: 6 \n\
|
||||
Skillbar Slot 7: 7 \n\
|
||||
Skillbar Slot 8: 8 \n\
|
||||
Skillbar Slot 9: 9 \n\
|
||||
Skillbar Slot 10: 0 \n\
|
||||
\n\
|
||||
\n\
|
||||
Pause Menu: ESC \n\
|
||||
Settings: N \n\
|
||||
Social: O \n\
|
||||
Map: M \n\
|
||||
Spellbook: P \n\
|
||||
Character: C \n\
|
||||
Questlog L \n\
|
||||
Bag: B \n\
|
||||
\n\
|
||||
\n\
|
||||
\n\
|
||||
Activate Chat & Input/Send Message: Enter \n\
|
||||
Scroll Chat: Mousewheel on Chat-Window \n\
|
||||
\n\
|
||||
\n\
|
||||
Chat commands: \n\
|
||||
\n\
|
||||
/alias [Name] - Change your Chat Name \n\
|
||||
/tp [Name] - Teleports you to another player
|
||||
")
|
||||
.color(TEXT_COLOR)
|
||||
.top_left_with_margins_on(self.ids.settings_content, 5.0, 5.0)
|
||||
.font_id(self.font_opensans)
|
||||
.font_size(18)
|
||||
.set(self.ids.controls_text, ui_widgets);
|
||||
|
||||
|
||||
}
|
||||
// 4 Video////////////////////////////////
|
||||
if Button::image(if let SettingsTab::Video = self.settings_tab {
|
||||
self.imgs.settings_button_pressed
|
||||
@ -1667,7 +1741,9 @@ impl Hud {
|
||||
.set(self.ids.menu_button_2, ui_widgets)
|
||||
.was_clicked()
|
||||
{
|
||||
//self.menu_open = false;
|
||||
self.menu_open = false;
|
||||
self.settings_tab = SettingsTab::Controls;
|
||||
self.open_windows = Windows::Settings;
|
||||
};
|
||||
// Servers
|
||||
if Button::image(self.imgs.button_dark)
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -116,7 +116,7 @@ impl FigureCache {
|
||||
match head {
|
||||
Head::DefaultHead => "head.vox",
|
||||
},
|
||||
Vec3::new(-5.5, -7.0, -6.0),
|
||||
Vec3::new(-7.5, -8.0, 0.0),
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user