Beispiel #1
0
	void StateTextureControl::updateStateProperties()
	{
		updateVisible();
		updatePosition();

		updateUnselectedStates();
	}
	void SeparatorTextureControl::updateSeparatorProperty(Property* _sender, const MyGUI::UString& _owner)
	{
		if (_owner != mTypeName)
		{
			if (_sender->getName() == "Offset")
				updatePosition();
			else if (_sender->getName() == "Visible")
			{
				updateVisible();
				updateUnselectedStates();
			}
		}
	}
	void RegionTextureControl::updateRegionSize()
	{
		mTextureRegion.width = 0;
		mTextureRegion.height = 0;

		if (getCurrentSkin() != nullptr)
		{
			MyGUI::IntCoord coord = MyGUI::IntCoord::parse(getCurrentSkin()->getPropertySet()->getPropertyValue("Coord"));
			mTextureRegion.width = coord.width;
			mTextureRegion.height = coord.height;
		}

		updateTextureControl();

		updateUnselectedStates();
	}
Beispiel #4
0
	void StateTextureControl::updateSelectorsSize()
	{
		mAreaSelectorControl->setSize(mSizeValue);

		updateUnselectedStates();
	}
	void RegionTextureControl::updateSeparatorProperty(Property* _sender, const MyGUI::UString& _owner)
	{
		if (_sender->getName() == "Visible" || _sender->getName() == "Offset")
			updateUnselectedStates();
	}
	void RegionTextureControl::updateSeparatorProperties()
	{
		updateUnselectedStates();
	}