aboutsummaryrefslogtreecommitdiff
path: root/src/gui
AgeCommit message (Collapse)Author
2018-05-28Fix more GCC 8.1 warnings ↵Loïc Blot
  1   master  Fix 3 warnings reported by GCC 8.1 of the following type ```src/client/gameui.cpp:191:43: warning: « void* memset(void*, int, size_t) » effacement d'un objet du type non trivial « struct GameUI::Flags »; use assignment or value-initialization instead [-Wclass-memaccess] memset(&m_flags, 0, sizeof(GameUI::Flags)); ```
2018-05-15Don't show Android edit dialog when tapping read-only field (#7337)Muhammad Rifqi Priyo Susanto
* Don't show Android edit dialog when tapping read-only field From Lua API, "If the name is empty the textarea is readonly."
2018-05-10Fix crash guiConfirmRegistration quit menu (#7313)Vincent Glize
2018-04-23Formspecs: Allow setting alpha value for the box[] elementThomas--S
2018-04-18Android: Modify touch screen GUI's buttons (#7240)Muhammad Rifqi Priyo Susanto
* Android: Add zoom, minimap, and toggle chat button Zoom button is put above jump button. Minimap and toggle chat button are put in settings bar. * Jump button is rotated down button * Move three buttons on the right screen higher
2018-04-10Android: Replace movement buttons with joystick (#7126)Muhammad Rifqi Priyo Susanto
* Android: Replace movement buttons with joystick Replace movement control buttons (arrows at bottom left screen) with virtual joystick. Joystick has 8 directions (same as keyboard). Basically, just map it to keyboard input. Joystick applies only on left 1/3 of screen. Joystick's position can be fixed by enabling fixed_virtual_joystick setting. Three new images: (1) placeholder joystick, (2) joystick container (background), and (3) joystick cursor. Remove unused images: movement control buttons (*_arrow.png). New data type: touch_gui_joystick_move_id Joystick's fixed position is spaced one button size from bottom and from left of screen. Remove unused variable: m_joystick_downlocation
2018-04-03Selected ItemStack: Reduce black magic (#6520)SmallJoker
* Selected ItemStack: Reduce black magic Better button variable value naming
2018-04-02Formspecs: Use mouse wheel to pick up and deposit single itemsyou
2018-04-01LINT: add clang-tidy step (#6295)Loïc Blot
* Implement new travis clang-tidy build step * This step enable some rules and enforce one rule as error * This permits to have some C++ quality rules based on clang & clang contributor guidelines * Fix clang-tidy reported problems on push_back -> emplace_back
2018-03-28Add formspec theming using prepended stringsAndrew Ward
2018-03-26Guard sound manager initialization with "enable_sound" (#7167)nOOb3167
2018-03-24Cleanup sound manager class (#7158)Loïc Blot
* Cleanup sound manager client * Use some const refs * Use auto on iterators * Drop unused parameters * Move sound_openal.* to client folder * Move sound.cpp + OnDemandSoundFetcher to client/ folder + reorganize includes properly
2018-03-23Global initialization of sound using SoundManagerGlobal (#7063)nOOb3167
* Global initialization of sound using SoundManagerGlobal
2018-03-16Server: delegate mod management & config to ServerModConfiguration (#7131)Loïc Blot
* Server: delegate mod management & config to ServerModConfiguration (rename it to ServerModManager) * Use c++11 range based loops * Add unittests + experimental/default mod as a test case to permit testing mod loading in future tests
2018-03-11Finally fix android buildLoic Blot
2018-03-11Fix Android build, but there is a remaining linking issue in ↵Loic Blot
guiConfirmRegistration * Also fix variable name overloading in guiConfirmRegistration
2018-03-11Android build fixes for c++11stujones11
2018-03-09Formspecs: Unify textarea and field parsing functions, fix wrong fallback textSmallJoker
* textarea[], field[]: Unify function, fix wrong fallback text * Remove apparently superflous mainmenumanager.h incldue * intlGUIEditBox.cpp: make read-only boxes really read-only * Use elseif (trivial)
2018-02-23Registration dialog: Larger text field with scrollbars (#7047)SmallJoker
Center text, text area doubled now
2018-02-09Fix 'Change Keys' menu crash caused by 501f936SmallJoker
2018-01-20Game refactor [4/X]: keycache is now owned by InputHandlerLoic Blot
* Make InputHandler own the key cache * Add a helper function InputHandler::cancelPressed to avoid multiple similar calls in game.cpp * Move RandomInputHandler::step definition into cpp file
2018-01-20Game refactor [2/X]: Various moves (profilergraph, nodePlacementPrediction, ↵Loic Blot
create_formspec_menu) * Move profilergraph to dedicated files * Move nodePlacementPrediction to Game class * Rename create_formspec_menu to GUIFormSpecMenu::create
2018-01-20[CSM] Add basic HUD manipulation. (#6067)red-001
* [CSM] Add basic HUD manipulation. Workaround for on_connect not working right now.
2018-01-13Registration confirmation dialog: Fix grammarMuhammad Rifqi Priyo Susanto
Fixes commit 792752997c5ae2aaa4f54d0a2e2af2a96d7d1e9f.
2018-01-13Add confirmation on new player registration (#6849)Muhammad Rifqi Priyo Susanto
* Attempt to add registration confirmation Using SRP auth mechanism, if server sent AUTH_MECHANISM_FIRST_SRP that means the player isn't exist. Also tell player about the server and chosen username. Local game has localhost as IP address of the server. Add RenderingEngine::draw_menu_scene() to draw GUI and clouds background. aborted -> connection_aborted * Rewrite information message text Client::promptConfirmRegister() -> Client::promptConfirmRegistration()
2018-01-05Don't recalculate statustext initial color everytime & review fixesLoic Blot
2018-01-05GameUI refactor (part 2/X): Move Game::guitext to GameUI + enhancements on ↵Loic Blot
StaticText Other enhancements: * C++ friendlyness for addStaticText() -> move to static StaticText::add()
2017-12-25Fix dancing textnumber Zero
2017-12-21Fix wrong scrolling (#6809)Vitaliy
2017-12-06Ensure no item stack is being held before crafting (#4779)Luis Cáceres
2017-11-18Fix mousewheel behaviour in textarea (#6641)shivajiva101
Allowing scrolling with the mousewheel when the vertical scrollbar is hidden, unnecessarily exposes oversized containers and newlines at the end of the text. For example try scrolling over the textareas in the pause menu. This PR addresses the issue by requiring the scrollbar to be visible before allowing the scrolling with the mousewheel.
2017-11-08Move files to subdirectories (#6599)Vitaliy
* Move files around