mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2025-01-08 23:19:26 +00:00
feat: add tab XvB option to Gupax Tab selector
This commit is contained in:
parent
0a9375130f
commit
066fd5bda5
2 changed files with 9 additions and 1 deletions
|
@ -230,7 +230,7 @@ impl Gupax {
|
||||||
// Saved [Tab]
|
// Saved [Tab]
|
||||||
debug!("Gupax Tab | Rendering [Tab] selector");
|
debug!("Gupax Tab | Rendering [Tab] selector");
|
||||||
ui.group(|ui| {
|
ui.group(|ui| {
|
||||||
let width = (size.x / 5.0) - (SPACE * 1.93);
|
let width = (size.x / 6.0) - (SPACE * 1.93);
|
||||||
let size = vec2(width, height);
|
let size = vec2(width, height);
|
||||||
ui.add_sized(
|
ui.add_sized(
|
||||||
[ui.available_width(), height / 2.0],
|
[ui.available_width(), height / 2.0],
|
||||||
|
@ -284,6 +284,13 @@ impl Gupax {
|
||||||
{
|
{
|
||||||
self.tab = Tab::Xmrig;
|
self.tab = Tab::Xmrig;
|
||||||
}
|
}
|
||||||
|
if ui
|
||||||
|
.add_sized(size, SelectableLabel::new(self.tab == Tab::Xvb, "XvB"))
|
||||||
|
.on_hover_text(GUPAX_TAB_XVB)
|
||||||
|
.clicked()
|
||||||
|
{
|
||||||
|
self.tab = Tab::Xvb;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -292,6 +292,7 @@ pub const GUPAX_TAB_STATUS: &str = "Set the tab Gupax starts on to: Status";
|
||||||
pub const GUPAX_TAB_GUPAX: &str = "Set the tab Gupax starts on to: Gupax";
|
pub const GUPAX_TAB_GUPAX: &str = "Set the tab Gupax starts on to: Gupax";
|
||||||
pub const GUPAX_TAB_P2POOL: &str = "Set the tab Gupax starts on to: P2Pool";
|
pub const GUPAX_TAB_P2POOL: &str = "Set the tab Gupax starts on to: P2Pool";
|
||||||
pub const GUPAX_TAB_XMRIG: &str = "Set the tab Gupax starts on to: XMRig";
|
pub const GUPAX_TAB_XMRIG: &str = "Set the tab Gupax starts on to: XMRig";
|
||||||
|
pub const GUPAX_TAB_XVB: &str = "Set the tab Gupax starts on to: XvB";
|
||||||
|
|
||||||
pub const GUPAX_SIMPLE: &str = r#"Use simple Gupax settings:
|
pub const GUPAX_SIMPLE: &str = r#"Use simple Gupax settings:
|
||||||
- Update button
|
- Update button
|
||||||
|
|
Loading…
Reference in a new issue