The International Simutrans Forum

 

Author Topic: Touch Friendly UI  (Read 10117 times)

0 Members and 1 Guest are viewing this topic.

Offline Roboron

  • Devotee
  • *
  • Posts: 290
    • Las Gal├ícticas Aventuras de Komoyo Diga
  • Languages: ES, EN
Re: Touch Friendly UI
« Reply #35 on: May 31, 2021, 11:18:37 AM »
When I click the button to change the toolbar position for the first time, the second time I click it it does nothing (it doesn't even show the click animation), so I have to click a third time to actually change the toolbar position again.

It doesn't happen if I click somewhere else mouse the mouse slightly between the first click and the second.

Also, a question: Is there any reason this has been implemented as a button instead of a combobox(top, right, bottom, left)?

Offline ceeac

  • Devotee
  • *
  • Posts: 259
Re: Touch Friendly UI
« Reply #36 on: May 31, 2021, 05:07:47 PM »
Another bug: Since r9805, the headless server crashes immediately after startup with a division by zero error.
Code: [Select]
gui/tool_selector.cc:300:81: runtime error: division by zero
    #0 0x116fe3c in tool_selector_t::draw(scr_coord, scr_size) /home/ceeac/Projects/code/simutrans/gui/tool_selector.cc:300:81
    #1 0x111cb3f in win_display_flush(double) /home/ceeac/Projects/code/simutrans/gui/simwin.cc:1740:13
    #2 0x19e1f86 in intr_refresh_display(bool) /home/ceeac/Projects/code/simutrans/simintr.cc:83:3
    #3 0x1c37dd7 in karte_t::sync_step(unsigned int, bool, bool) /home/ceeac/Projects/code/simutrans/simworld.cc:3693:3
    #4 0x19e23ef in interrupt_check(char const*) /home/ceeac/Projects/code/simutrans/simintr.cc:114:17
    #5 0x1c92e1e in karte_t::interactive(unsigned int) /home/ceeac/Projects/code/simutrans/simworld.cc:7309:5
    #6 0x1a109dc in simu_main(int, char**) /home/ceeac/Projects/code/simutrans/simmain.cc:1585:9
    #7 0x1e9d9f1 in sysmain(int, char**) /home/ceeac/Projects/code/simutrans/sys/simsys.cc:1125:9
    #8 0x1fd4311 in main /home/ceeac/Projects/code/simutrans/sys/simsys_posix.cc:190:9
    #9 0x7fba843270b2 in __libc_start_main /build/glibc-YbNSs7/glibc-2.31/csu/../csu/libc-start.c:308:16
    #10 0x42c72d in _start (/media/ceeac/Projects/code/simutrans/build/client/sim+0x42c72d)

Offline ceeac

  • Devotee
  • *
  • Posts: 259
Re: Touch Friendly UI
« Reply #37 on: June 19, 2021, 06:41:27 AM »
The bug from the last post should be fixed in r9901.