Sha256: e2e3e3d15ec480cb37e9dff2a73b9f59178b9d704a060b7bc376148f4c54c3b3
Contents?: true
Size: 1.57 KB
Versions: 1
Compression:
Stored size: 1.57 KB
Contents
require 'gtk3' ## # PAS UTILISE DANS LE VERSION FINALE # Auteur:: Brabant Mano # Version:: 0.1 # Date:: 09/04/2020 # #Montre l'ecran de victoire class FinUI < Gtk::Box def initialize(racine) super(:vertical, 10) @racine = racine end def reussi(taille, difficulte) each_all do |c| remove(c) end add(Gtk::Label.new("Bravo vous avez gagné !!!")) #puts "OSCOUR !!! : " , taille.inspect, difficulte.inspect if(difficulte == 0) if(taille == 7) #puts "JEANNE !!!!!!" add(Gtk::Image.new(:file => "lib/Hashiparmentier/Data/Pont Gaulois.jpg")) elsif(taille == 10) add(Gtk::Image.new(:file => "lib/Hashiparmentier/Data/Pont Gaulois.jpg")) elsif(taille == 15) add(Gtk::Image.new(:file => "lib/Hashiparmentier/Data/Pont Gaulois.jpg")) end elsif(difficulte == 1) if(taille == 7) add(Gtk::Image.new(:file => "lib/Hashiparmentier/Data/Zubi Zuri.jpg")) elsif(taille == 10) add(Gtk::Image.new(:file => "lib/Hashiparmentier/Data/Zubi Zuri.jpg")) elsif(taille == 15) add(Gtk::Image.new(:file => "lib/Hashiparmentier/Data/Zubi Zuri.jpg")) end elsif(difficulte == 2) if(taille == 7) add(Gtk::Image.new(:file => "lib/Hashiparmentier/Data/Golden Bridge.jpg")) elsif(taille == 10) add(Gtk::Image.new(:file => "lib/Hashiparmentier/Data/Golden Bridge.jpg")) elsif(taille == 15) add(Gtk::Image.new(:file => "lib/Hashiparmentier/Data/Golden Bridge.jpg")) end end show_all end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Hashiparmentier-0.4.0 | lib/Hashiparmentier/UI/FinUI.rb |