From a2a80aca51b299a39232eaf2c83a88bd32eec0cc Mon Sep 17 00:00:00 2001
From: jeje <jeremy.rioux@student-cs.fr>
Date: Wed, 12 Mar 2025 15:06:44 +0100
Subject: [PATCH] pitie

---
 .../gestion_clavier.cpython-311.pyc           | Bin 1341 -> 1341 bytes
 Objet/__pycache__/parameters.cpython-311.pyc  | Bin 7615 -> 7615 bytes
 Objet/__pycache__/ui.cpython-311.pyc          | Bin 22406 -> 23749 bytes
 Objet/ui.py                                   |  31 ++++++++++++++----
 4 files changed, 25 insertions(+), 6 deletions(-)

diff --git a/Objet/__pycache__/gestion_clavier.cpython-311.pyc b/Objet/__pycache__/gestion_clavier.cpython-311.pyc
index eaade919f0cdd4c1a5940f4904e68c0949242617..a7b1fb79db747ef6d69c155959cc35292b00e1e8 100644
GIT binary patch
delta 20
acmdnXwU>)~IWI340}wb)y10?sh!p@fa0L7S

delta 20
acmdnXwU>)~IWI340}wpmIKPqGh!p@gg9Q%&

diff --git a/Objet/__pycache__/parameters.cpython-311.pyc b/Objet/__pycache__/parameters.cpython-311.pyc
index 54fc99c8041bc2f125d44304fa6dc4616d08d1ea..acab8178303e761a8a40957bd8f6b40be6dad88c 100644
GIT binary patch
delta 20
acmdmQz2BO9IWI340}wb)y10>hi!1;>yaoIK

delta 20
acmdmQz2BO9IWI340}#0KoZra3MHT=%ss(re

diff --git a/Objet/__pycache__/ui.cpython-311.pyc b/Objet/__pycache__/ui.cpython-311.pyc
index 06e6dfe0f4170afeb139c200e1b3066000c8bfc8..b9a5bb884e9fee8e9c8148bd909b072fd6dd16f3 100644
GIT binary patch
delta 395
zcmZo$&v<kvBj0jfUM>b8m^bBOdbiC+z5*4dZGxK{R5+QKB~zp)JE*Bl{-DV^*<M3p
z@>w;d$?9sNlMA%OLHy0e>U<oGJ0{zx>rdv_6PzrdFSmJ{z7R8C4Ofb6HWSFu35-R%
zCZB`Ii!d>C@}|fxV`N}h4a5*InGLAvlzy5d({$d=MxLC^jA@f?d`c%*`$&r15Rjd~
zJ0o>L#EOcG0v1;UEG`IGOupwMi&t{9tM7eQNr?#@6S<~vP2jqrVYq^GgT_S->nk8+
zyV)~%E+gjye&Gofm-yu`PB!!vnY`Xt0I!BqOtR_BtS*cn7_d{54Z>bn`m!>DRN$sQ
QLgc=nDoNm)92jm200*6RZU6uP

delta 302
zcmX@Qld)|*Bj0jfUM>b8u%37^eZToez5*2{KfcWkDx6HrQYq4t59z5)w$hNDd{#|~
zQEKuBHId0z^n^enn~l}^I2eykwo%ucT%aX1d4?g+<R*Q&$=CGxH!s!aW!`LHmLbM;
zfP3>SA5Lb*;K@t;ODFFQ5a5)Uz%h|)3fBa#$pL{PlYa%sPF4@ZBD#5Pz<pL#u?cJw
zIi_$-;JBfoy@quI=LXIl8W#<muYi#239gF<K^HZGHg`mvVv-GEW_4lwz<`~aoFDzd
YvWkTfqyjhf5hC{mRY?`+<OwmR0Qv4-PXGV_

diff --git a/Objet/ui.py b/Objet/ui.py
index 2384829..ff4b5d6 100644
--- a/Objet/ui.py
+++ b/Objet/ui.py
@@ -182,15 +182,15 @@ class UI:
 
             if name == "ant_bl":
                 valid_to_right("ant_br")
-                update_ref_x("ant_tl")
-                update_x()
-                update_center_x("net", "ant_bl", "ant_br")
+                update_ref("ant_tl")
+                update()
+                update_center("net", "ant_bl", "ant_br")
             
             if name == "ant_br":
                 valid_to_left("ant_bl")
-                update_ref_x("ant_tr")
-                update_x()
-                update_center_x("net", "ant_bl", "ant_br")
+                update_ref("ant_tr")
+                update()
+                update_center("net", "ant_bl", "ant_br")
             
             if name == "ant_tl":
                 valid_to_down("ant_bl")
@@ -321,6 +321,25 @@ class UI:
                 get_point("wind_r_br").y = net.y - self.wind_r_b * ant_height
                 update_center("wind_r_m", "wind_r_tl", "wind_r_br")
 
+            if name == "ant_tr":
+                valid_to_down("ant_br")
+                valid_to_left("ant_tl")
+                update_y()
+                get_point("ant_tl").y = get_point("ant_tr").y
+                get_point("set_height").y = net.y - self.set_height * ant_height
+                get_point("set_margin_over").y = net.y - self.set_margin_over * ant_height
+                get_point("set_margin_under").y = net.y - self.set_margin_under * ant_height
+                get_point("wind_l_tl").y = net.y - self.wind_l_t * ant_height
+                get_point("wind_l_bl").y = net.y - self.wind_l_b * ant_height
+                get_point("wind_l_tr").y = net.y - self.wind_l_t * ant_height
+                get_point("wind_l_br").y = net.y - self.wind_l_b * ant_height
+                update_center("wind_l_m", "wind_l_tl", "wind_l_br")
+                get_point("wind_r_tl").y = net.y - self.wind_r_t * ant_height
+                get_point("wind_r_bl").y = net.y - self.wind_r_b * ant_height
+                get_point("wind_r_tr").y = net.y - self.wind_r_t * ant_height
+                get_point("wind_r_br").y = net.y - self.wind_r_b * ant_height
+                update_center("wind_r_m", "wind_r_tl", "wind_r_br")
+            
 
 if __name__ == "__main__":
     subprocess.run(["python", "Objet/Main.py"])
\ No newline at end of file
-- 
GitLab