diff --git a/src/app/panels/middle/xvb.rs b/src/app/panels/middle/xvb.rs index 93e0470..d87f8b1 100644 --- a/src/app/panels/middle/xvb.rs +++ b/src/app/panels/middle/xvb.rs @@ -16,11 +16,11 @@ use crate::utils::constants::{ XVB_HELP, XVB_ROUND_TYPE_FIELD, XVB_TOKEN_FIELD, XVB_TOKEN_LEN, XVB_URL_RULES, XVB_WINNER_FIELD, XVB_HERO_SELECT, XVB_MODE_MANUALLY_DONATE, XVB_MODE_MANUALLY_KEEP, XVB_MODE_MANUAL_DONATION_LEVEL, XVB_DONATION_LEVEL_DONOR_HELP, XVB_DONATION_LEVEL_VIP_DONOR_HELP, XVB_DONATION_LEVEL_WHALE_DONOR_HELP, - XVB_DONATION_LEVEL_MEGA_DONOR_HELP + XVB_DONATION_LEVEL_MEGA_DONOR_HELP, XVB_MANUAL_SLIDER_DONATE_HELP, XVB_MANUAL_SLIDER_KEEP_HELP }; use crate::utils::macros::lock; use crate::utils::regex::Regexes; -use crate::{XVB_MANUAL_HASHRATE_HELP, XVB_MINING_ON_FIELD}; +use crate::{XVB_MINING_ON_FIELD}; use crate::{ constants::{BYTES_XVB, SPACE}, utils::constants::{DARK_GRAY, XVB_URL}, @@ -175,13 +175,19 @@ impl crate::disk::state::Xvb { lock!(gui_api_xmrig).hashrate_raw } }; + + let slider_help_text = if self.mode == XvbMode::ManuallyDonate { + XVB_MANUAL_SLIDER_DONATE_HELP + } else { + XVB_MANUAL_SLIDER_KEEP_HELP + }; ui.horizontal(|ui| { ui.spacing_mut().slider_width = width * 0.7; ui.add_sized( [width, text_edit], egui::Slider::new(&mut self.amount, 0.0..=(hashrate_xmrig as f64)).text("H/s") - ).on_hover_text(XVB_MANUAL_HASHRATE_HELP); + ).on_hover_text(slider_help_text); }); } diff --git a/src/utils/constants.rs b/src/utils/constants.rs index f104654..11dcd66 100644 --- a/src/utils/constants.rs +++ b/src/utils/constants.rs @@ -412,7 +412,8 @@ pub const XMRIG_PATH_EMPTY: &str = "XMRig PATH is empty! To fix: goto the [G // XvB pub const XVB_HELP: &str = "You need to register an account by clicking on the link above to get your token with the same p2pool XMR address you use for payment."; -pub const XVB_MANUAL_HASHRATE_HELP: &str = "Set the hashrate amount to donate or keep manually in H/s"; +pub const XVB_MANUAL_SLIDER_DONATE_HELP: &str = "Set the hashrate amount to donate to XvB manually"; +pub const XVB_MANUAL_SLIDER_KEEP_HELP: &str = "Set the hashrate amount to keep on p2pool manually"; pub const XVB_URL: &str = "https://xmrvsbeast.com"; pub const XVB_URL_PUBLIC_API: &str = "https://xmrvsbeast.com/p2pool/stats";