Give lineup names and the squad table more space (by Codex)
This commit is contained in:
1 parent
8661c612b0
commit
cdfcb641b4
7 files changed
+81
-54
No files matched your search
@@ -147,8 +147,8 @@ bool App::lineup_event(Rml::Event &event) {
|
||||
const auto p=point(mx,my);lineup_drag_["ghost"]=p;
|
||||
if(p.is_array())if(auto *ghost=element("lineup-ghost")) {
|
||||
ghost->SetProperty("display","block");
|
||||
ghost->SetProperty("left",scalar((8+p[0].get<int>()/18.0*84)*lineup_art_width_dp/100-63)+"dp");
|
||||
ghost->SetProperty("top",scalar((10+p[1].get<int>()/8.0*80)*lineup_art_height_dp/100-76.86)+"dp");
|
||||
ghost->SetProperty("left",scalar((8+p[0].get<int>()/18.0*84)*lineup_art_width_dp/100-lineup_player_anchor_x_dp)+"dp");
|
||||
ghost->SetProperty("top",scalar((10+p[1].get<int>()/8.0*80)*lineup_art_height_dp/100-lineup_player_anchor_y_dp)+"dp");
|
||||
dirty_=true;
|
||||
}
|
||||
stop();return true;
|
||||
|
||||
Reference in new issue
Block a user