Licence MIT et signature « By LinkAtPlug » dans le launcher
- LICENSE : MIT, © 2026 LinkAtPlug ; reprise du code libre à condition de garder la mention de l'auteur. Ne couvre ni le jeu (© 1996 Merit Studios) ni SDL2 (zlib) ni la police Bangers (OFL). - README FR/EN : section Licence expliquée simplement, lien Buy Me a Coffee. - Launcher : en bas à droite, petite tasse dessinée et « By LinkAtPlug », discrets, cliquables vers buymeacoffee.com/linkatplug. - Cargo.toml : license = "MIT", authors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2ffd13fd95
commit
ab1fcd7105
5 files changed
+88
-2
No files matched your search
@@ -0,0 +1,29 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2026 LinkAtPlug
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
---
|
||||
|
||||
This license covers the code and documentation of this project only. It does not
|
||||
cover Bud Tucker in Double Trouble itself (© 1996 Merit Studios), whose files are
|
||||
neither included nor distributed, nor the third-party components, which keep
|
||||
their own licenses (SDL2: zlib license; Bangers font: SIL Open Font License 1.1,
|
||||
see launcher/assets/fonts/OFL.txt).
|
||||
+9
-1
@@ -167,4 +167,12 @@ repository).
|
||||
|
||||
## License
|
||||
|
||||
To be decided.
|
||||
**Open source** project, under the [MIT license](LICENSE): you can take the code, modify it,
|
||||
redistribute it or start over from it, freely, **as long as you credit the author** (LinkAtPlug) by
|
||||
keeping the copyright notice of the `LICENSE` file.
|
||||
|
||||
The license covers the project's code and documentation, not the game (© 1996 Merit Studios), none of
|
||||
whose files are provided. SDL2 (zlib license) and the Bangers font (SIL Open Font License) keep their
|
||||
own licenses.
|
||||
|
||||
☕ Enjoying the project? [Buy me a coffee](https://buymeacoffee.com/linkatplug).
|
||||
@@ -170,4 +170,12 @@ est généré localement, à partir de la copie du joueur, dans `build/` (exclu
|
||||
|
||||
## Licence
|
||||
|
||||
À définir.
|
||||
Projet **open source**, sous [licence MIT](LICENSE) : vous pouvez reprendre le code, le modifier, le
|
||||
redistribuer ou repartir de zéro avec, librement, **à condition de mentionner l'auteur** (LinkAtPlug)
|
||||
en gardant la notice de copyright du fichier `LICENSE`.
|
||||
|
||||
La licence couvre le code et la documentation du projet, pas le jeu (© 1996 Merit Studios), dont aucun
|
||||
fichier n'est fourni. SDL2 (licence zlib) et la police Bangers (SIL Open Font License) gardent leur
|
||||
propre licence.
|
||||
|
||||
☕ Le projet vous plaît ? [Offrez-moi un café](https://buymeacoffee.com/linkatplug).
|
||||
@@ -4,6 +4,8 @@ version = "0.1.0"
|
||||
edition = "2021"
|
||||
description = "Launcher de DoubleTroubleRecomp : choix du jeu, vérifications, compilation, lancement"
|
||||
publish = false
|
||||
license = "MIT"
|
||||
authors = ["LinkAtPlug"]
|
||||
|
||||
[[bin]]
|
||||
name = "DoubleTroubleLauncher"
|
||||
|
||||
@@ -501,6 +501,43 @@ fn play_button(ui: &mut egui::Ui, label: &str, enabled: bool) -> egui::Response
|
||||
}
|
||||
}
|
||||
|
||||
const COFFEE_URL: &str = "https://buymeacoffee.com/linkatplug";
|
||||
|
||||
/// signature discrète en bas de la fenêtre : petite tasse dessinée (pas d'image embarquée) et « By LinkAtPlug »,
|
||||
/// le tout cliquable vers la page Buy Me a Coffee ; s'éclaire au survol
|
||||
fn coffee_link(ui: &mut egui::Ui, en: bool) {
|
||||
let text = egui::WidgetText::from(RichText::new("By LinkAtPlug").small());
|
||||
let galley = text.into_galley(ui, Some(egui::TextWrapMode::Extend), f32::INFINITY, egui::TextStyle::Small);
|
||||
let icon = 14.0;
|
||||
let size = egui::vec2(icon + 5.0 + galley.size().x, icon.max(galley.size().y));
|
||||
let (rect, resp) = ui.allocate_exact_size(size, egui::Sense::click());
|
||||
let resp = resp.on_hover_cursor(egui::CursorIcon::PointingHand).on_hover_text(if en {
|
||||
"Support the project: buy me a coffee (buymeacoffee.com/linkatplug)"
|
||||
} else {
|
||||
"Soutenir le projet : offrez-moi un café (buymeacoffee.com/linkatplug)"
|
||||
});
|
||||
let col = if resp.hovered() { ACCENT } else { ui.visuals().weak_text_color() };
|
||||
let p = ui.painter();
|
||||
// tasse : corps, anse, soucoupe et deux volutes de vapeur
|
||||
let o = egui::pos2(rect.left(), rect.center().y - icon / 2.0);
|
||||
let stroke = Stroke::new(1.3, col);
|
||||
p.rect_stroke(
|
||||
Rect::from_min_size(o + egui::vec2(1.0, 5.0), egui::vec2(8.5, 7.0)),
|
||||
CornerRadius { nw: 0, ne: 0, sw: 3, se: 3 },
|
||||
stroke,
|
||||
egui::StrokeKind::Middle,
|
||||
);
|
||||
p.circle_stroke(o + egui::vec2(10.5, 8.0), 2.0, stroke);
|
||||
p.line_segment([o + egui::vec2(0.0, 13.5), o + egui::vec2(11.5, 13.5)], stroke);
|
||||
for x in [3.5, 7.0] {
|
||||
p.line_segment([o + egui::vec2(x, 3.5), o + egui::vec2(x + 1.0, 1.0)], Stroke::new(1.0, col));
|
||||
}
|
||||
p.galley(egui::pos2(rect.left() + icon + 5.0, rect.center().y - galley.size().y / 2.0), galley, col);
|
||||
if resp.clicked() {
|
||||
ui.ctx().open_url(egui::OpenUrl::new_tab(COFFEE_URL));
|
||||
}
|
||||
}
|
||||
|
||||
/// résolutions proposées pour la fenêtre : mêmes listes que le menu F12 du jeu (runtime/menu.c)
|
||||
const RESOLUTIONS: &[(u32, u32)] = &[
|
||||
(960, 720), (1280, 960), (1440, 1080), (1600, 1200), (1920, 1440), (2560, 1920), (2880, 2160), // 4:3
|
||||
@@ -1772,6 +1809,8 @@ impl App {
|
||||
if ui.button(cfg_label).clicked() {
|
||||
self.config_open = Some(!open);
|
||||
}
|
||||
ui.add_space(10.0);
|
||||
coffee_link(ui, self.cfg.lang == Lang::En);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user