mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-23 02:49:48 +00:00
Style changes
This commit is contained in:
parent
b3561e773d
commit
93bf97a15e
3 changed files with 34 additions and 45 deletions
|
|
@ -12,18 +12,7 @@
|
|||
#include "../../../platform/input/Mouse.h"
|
||||
#include "../../../util/Mth.h"
|
||||
|
||||
OptionsGroup::OptionsGroup( std::string labelID )
|
||||
: contentHeight(0),
|
||||
scrollOffsetY(0.0f),
|
||||
maxScrollOffsetY(0.0f),
|
||||
trackingScrollGesture(false),
|
||||
scrollingGesture(false),
|
||||
touchDispatched(false),
|
||||
dragStartX(0),
|
||||
dragStartY(0),
|
||||
lastDragY(0),
|
||||
touchStartX(0),
|
||||
touchStartY(0) {
|
||||
OptionsGroup::OptionsGroup( std::string labelID ) {
|
||||
label = I18n::get(labelID);
|
||||
}
|
||||
|
||||
|
|
@ -36,7 +25,7 @@ void OptionsGroup::setupPositions() {
|
|||
const int contentStartY = y + labelHeight;
|
||||
|
||||
// First we write the header and then we add the items
|
||||
for(std::vector<GuiElement*>::iterator it = children.begin(); it != children.end(); ++it) {
|
||||
for(auto it = children.begin(); it != children.end(); ++it) {
|
||||
(*it)->width = width - 5;
|
||||
|
||||
(*it)->y = curY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue