Update repo link
This commit is contained in:
parent
2786081979
commit
86404aacf7
5 changed files with 9 additions and 12 deletions
|
@ -1,9 +1,8 @@
|
||||||
use std::process::Child;
|
use std::process::Child;
|
||||||
use dark_light::Mode;
|
use dark_light::Mode;
|
||||||
use egui::{IconData, Theme, Vec2, ViewportBuilder};
|
use egui::{IconData, Theme, Vec2};
|
||||||
use egui_extras::install_image_loaders;
|
use egui_extras::install_image_loaders;
|
||||||
use egui_flex::{item, Flex, FlexAlign, FlexAlignContent};
|
use egui_flex::{item, Flex};
|
||||||
use image::GenericImageView;
|
|
||||||
use backend::config::{Config, Paths, Versions};
|
use backend::config::{Config, Paths, Versions};
|
||||||
use crate::backend::http::HttpState;
|
use crate::backend::http::HttpState;
|
||||||
use crate::backend::secrets::Account;
|
use crate::backend::secrets::Account;
|
||||||
|
@ -114,7 +113,7 @@ impl eframe::App for App {
|
||||||
flex.add_ui(item(), |ui| {
|
flex.add_ui(item(), |ui| {
|
||||||
ui.label(format!("osrs luncher v{}", env!("CARGO_PKG_VERSION")));
|
ui.label(format!("osrs luncher v{}", env!("CARGO_PKG_VERSION")));
|
||||||
ui.separator();
|
ui.separator();
|
||||||
ui.hyperlink_to("see the source", "https://git.gaycatgirl.sex/evie/osrs-luncher");
|
ui.hyperlink_to("see the source", "https://forge.gaycatgirl.sex/evie/osrs-luncher");
|
||||||
});
|
});
|
||||||
|
|
||||||
flex.grow();
|
flex.grow();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use std::process::Child;
|
use std::process::Child;
|
||||||
use egui::{Context, Ui};
|
use egui::{Context, Ui};
|
||||||
|
|
||||||
pub fn update(child: &mut Option<Child>, ctx: &Context, ui: &mut Ui) {
|
pub fn update(child: &mut Option<Child>, _ctx: &Context, ui: &mut Ui) {
|
||||||
ui.heading("Close OSRS to continue!");
|
ui.heading("Close OSRS to continue!");
|
||||||
|
|
||||||
if ui.button("Close").clicked() {
|
if ui.button("Close").clicked() {
|
||||||
|
|
|
@ -38,7 +38,7 @@ impl Landing {
|
||||||
account: &mut Option<Account>,
|
account: &mut Option<Account>,
|
||||||
config: &mut Config,
|
config: &mut Config,
|
||||||
working: &mut bool,
|
working: &mut bool,
|
||||||
ctx: &Context,
|
_ctx: &Context,
|
||||||
ui: &mut Ui
|
ui: &mut Ui
|
||||||
) {
|
) {
|
||||||
match self.stage {
|
match self.stage {
|
||||||
|
@ -68,7 +68,7 @@ impl Landing {
|
||||||
println!("Server version: {}", server_version);
|
println!("Server version: {}", server_version);
|
||||||
|
|
||||||
self.server_version = Some(server_version.clone());
|
self.server_version = Some(server_version.clone());
|
||||||
|
|
||||||
if config.versions.runelite_version.ne(&server_version) {
|
if config.versions.runelite_version.ne(&server_version) {
|
||||||
self.stage = LandingStage::Download;
|
self.stage = LandingStage::Download;
|
||||||
} else {
|
} else {
|
||||||
|
@ -101,7 +101,7 @@ impl Landing {
|
||||||
|
|
||||||
if !Path::new(&config.paths.runelite_path).exists() {
|
if !Path::new(&config.paths.runelite_path).exists() {
|
||||||
self.stage = LandingStage::Download;
|
self.stage = LandingStage::Download;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use std::process::{Child, Command};
|
use std::process::{Child, Command};
|
||||||
use egui::{Color32, Context, RichText, Ui, Vec2};
|
use egui::{Color32, Context, RichText, Ui};
|
||||||
use egui_flex::{item, Flex, FlexAlign, FlexDirection};
|
use egui_flex::{item, Flex, FlexAlign, FlexDirection};
|
||||||
use egui_phosphor::fill;
|
use egui_phosphor::fill;
|
||||||
use crate::backend::config::Config;
|
use crate::backend::config::Config;
|
||||||
|
|
|
@ -22,9 +22,7 @@ impl Settings {
|
||||||
) {
|
) {
|
||||||
ui.heading("Settings");
|
ui.heading("Settings");
|
||||||
|
|
||||||
if ui.button(format!("{} Open Data Folder", fill::FOLDER)).clicked() {
|
ui.button(format!("{} Open Data Folder", fill::FOLDER)).clicked();
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
ui.horizontal(|ui| {
|
ui.horizontal(|ui| {
|
||||||
ui.label("RuneLite path: ");
|
ui.label("RuneLite path: ");
|
||||||
|
|
Loading…
Add table
Reference in a new issue