forked from mirror/openmw-tes3mp
use placeholder icons in OpenCS when no proper icon is available
This commit is contained in:
parent
a60e4c036f
commit
5eb9fd81e1
6 changed files with 19 additions and 18 deletions
|
@ -328,7 +328,7 @@ std::string CSMWorld::UniversalId::getIcon() const
|
||||||
|
|
||||||
for (int i=0; typeData[i].mName; ++i)
|
for (int i=0; typeData[i].mName; ++i)
|
||||||
if (typeData[i].mType==mType)
|
if (typeData[i].mType==mType)
|
||||||
return typeData[i].mIcon ? typeData[i].mIcon : "";
|
return typeData[i].mIcon ? typeData[i].mIcon : ":placeholder";
|
||||||
|
|
||||||
throw std::logic_error ("failed to retrieve UniversalId type icon");
|
throw std::logic_error ("failed to retrieve UniversalId type icon");
|
||||||
}
|
}
|
||||||
|
|
|
@ -219,16 +219,16 @@ void CSVRender::PagedWorldspaceWidget::addEditModeSelectorButtons (
|
||||||
|
|
||||||
/// \todo replace EditMode with suitable subclasses
|
/// \todo replace EditMode with suitable subclasses
|
||||||
tool->addButton (
|
tool->addButton (
|
||||||
new EditMode (this, QIcon (":armor.png"), Element_Reference, "Terrain shape editing"),
|
new EditMode (this, QIcon (":placeholder"), Element_Reference, "Terrain shape editing"),
|
||||||
"terrain-shape");
|
"terrain-shape");
|
||||||
tool->addButton (
|
tool->addButton (
|
||||||
new EditMode (this, QIcon (":armor.png"), Element_Reference, "Terrain texture editing"),
|
new EditMode (this, QIcon (":placeholder"), Element_Reference, "Terrain texture editing"),
|
||||||
"terrain-texture");
|
"terrain-texture");
|
||||||
tool->addButton (
|
tool->addButton (
|
||||||
new EditMode (this, QIcon (":armor.png"), Element_Reference, "Terrain vertex paint editing"),
|
new EditMode (this, QIcon (":placeholder"), Element_Reference, "Terrain vertex paint editing"),
|
||||||
"terrain-vertex");
|
"terrain-vertex");
|
||||||
tool->addButton (
|
tool->addButton (
|
||||||
new EditMode (this, QIcon (":armor.png"), Element_Reference, "Terrain movement"),
|
new EditMode (this, QIcon (":placeholder"), Element_Reference, "Terrain movement"),
|
||||||
"terrain-move");
|
"terrain-move");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -476,12 +476,12 @@ CSVWidget::SceneToolToggle *CSVRender::PagedWorldspaceWidget::makeControlVisibil
|
||||||
CSVWidget::SceneToolbar *parent)
|
CSVWidget::SceneToolbar *parent)
|
||||||
{
|
{
|
||||||
mControlElements = new CSVWidget::SceneToolToggle (parent,
|
mControlElements = new CSVWidget::SceneToolToggle (parent,
|
||||||
"Controls & Guides Visibility", ":door.png");
|
"Controls & Guides Visibility", ":placeholder");
|
||||||
|
|
||||||
mControlElements->addButton (":activator.png", Element_CellMarker, ":activator.png",
|
mControlElements->addButton (":placeholder", Element_CellMarker, ":placeholder",
|
||||||
"Cell marker");
|
"Cell marker");
|
||||||
mControlElements->addButton (":armor.png", Element_CellArrow, ":armor.png", "Cell arrows");
|
mControlElements->addButton (":placeholder", Element_CellArrow, ":placeholder", "Cell arrows");
|
||||||
mControlElements->addButton (":armor.png", Element_CellBorder, ":armor.png", "Cell border");
|
mControlElements->addButton (":placeholder", Element_CellBorder, ":placeholder", "Cell border");
|
||||||
|
|
||||||
mControlElements->setSelection (0xffffffff);
|
mControlElements->setSelection (0xffffffff);
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,7 @@ CSVWidget::SceneToolMode *CSVRender::WorldspaceWidget::makeNavigationSelector (
|
||||||
CSVWidget::SceneToolToggle *CSVRender::WorldspaceWidget::makeSceneVisibilitySelector (CSVWidget::SceneToolbar *parent)
|
CSVWidget::SceneToolToggle *CSVRender::WorldspaceWidget::makeSceneVisibilitySelector (CSVWidget::SceneToolbar *parent)
|
||||||
{
|
{
|
||||||
mSceneElements= new CSVWidget::SceneToolToggle (parent,
|
mSceneElements= new CSVWidget::SceneToolToggle (parent,
|
||||||
"Scene Element Visibility", ":door.png");
|
"Scene Element Visibility", ":placeholder");
|
||||||
|
|
||||||
addVisibilitySelectorButtons (mSceneElements);
|
addVisibilitySelectorButtons (mSceneElements);
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@ CSVWidget::SceneToolRun *CSVRender::WorldspaceWidget::makeRunTool (
|
||||||
std::sort (profiles.begin(), profiles.end());
|
std::sort (profiles.begin(), profiles.end());
|
||||||
|
|
||||||
mRun = new CSVWidget::SceneToolRun (parent, "Run OpenMW from the current camera position",
|
mRun = new CSVWidget::SceneToolRun (parent, "Run OpenMW from the current camera position",
|
||||||
":door.png", ":faction.png", profiles);
|
":placeholder", ":placeholder", profiles);
|
||||||
|
|
||||||
connect (mRun, SIGNAL (runRequest (const std::string&)),
|
connect (mRun, SIGNAL (runRequest (const std::string&)),
|
||||||
this, SLOT (runRequest (const std::string&)));
|
this, SLOT (runRequest (const std::string&)));
|
||||||
|
@ -262,20 +262,20 @@ unsigned int CSVRender::WorldspaceWidget::getInteractionMask() const
|
||||||
void CSVRender::WorldspaceWidget::addVisibilitySelectorButtons (
|
void CSVRender::WorldspaceWidget::addVisibilitySelectorButtons (
|
||||||
CSVWidget::SceneToolToggle *tool)
|
CSVWidget::SceneToolToggle *tool)
|
||||||
{
|
{
|
||||||
tool->addButton (":activator.png", Element_Reference, ":activator.png", "References");
|
tool->addButton (":placeholder", Element_Reference, ":placeholder", "References");
|
||||||
tool->addButton (":armor.png", Element_Terrain, ":armor.png", "Terrain");
|
tool->addButton (":placeholder", Element_Terrain, ":placeholder", "Terrain");
|
||||||
tool->addButton (":armor.png", Element_Water, ":armor.png", "Water");
|
tool->addButton (":placeholder", Element_Water, ":placeholder", "Water");
|
||||||
tool->addButton (":armor.png", Element_Pathgrid, ":armor.png", "Pathgrid");
|
tool->addButton (":placeholder", Element_Pathgrid, ":placeholder", "Pathgrid");
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSVRender::WorldspaceWidget::addEditModeSelectorButtons (CSVWidget::SceneToolMode *tool)
|
void CSVRender::WorldspaceWidget::addEditModeSelectorButtons (CSVWidget::SceneToolMode *tool)
|
||||||
{
|
{
|
||||||
/// \todo replace EditMode with suitable subclasses
|
/// \todo replace EditMode with suitable subclasses
|
||||||
tool->addButton (
|
tool->addButton (
|
||||||
new EditMode (this, QIcon (":armor.png"), Element_Reference, "Reference editing"),
|
new EditMode (this, QIcon (":placeholder"), Element_Reference, "Reference editing"),
|
||||||
"object");
|
"object");
|
||||||
tool->addButton (
|
tool->addButton (
|
||||||
new EditMode (this, QIcon (":armor.png"), Element_Pathgrid, "Pathgrid editing"),
|
new EditMode (this, QIcon (":placeholder"), Element_Pathgrid, "Pathgrid editing"),
|
||||||
"pathgrid");
|
"pathgrid");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -140,7 +140,7 @@ Sadler
|
||||||
Artwork:
|
Artwork:
|
||||||
Necrod - OpenMW Logo
|
Necrod - OpenMW Logo
|
||||||
Mickey Lyle (raevol) - Wordpress Theme
|
Mickey Lyle (raevol) - Wordpress Theme
|
||||||
Tom Koenderink (Okulo), SirHerrbatka, crysthala - OpenMW Editor Icons
|
Tom Koenderink (Okulo), SirHerrbatka, crysthala, Shnatsel - OpenMW Editor Icons
|
||||||
|
|
||||||
Inactive Contributors:
|
Inactive Contributors:
|
||||||
Ardekantur
|
Ardekantur
|
||||||
|
|
BIN
files/opencs/placeholder.png
Normal file
BIN
files/opencs/placeholder.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
|
@ -64,6 +64,7 @@
|
||||||
<file>edit-preview.png</file>
|
<file>edit-preview.png</file>
|
||||||
<file>edit-clone.png</file>
|
<file>edit-clone.png</file>
|
||||||
<file>add.png</file>
|
<file>add.png</file>
|
||||||
|
<file alias="placeholder">placeholder.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/startup">
|
<qresource prefix="/startup">
|
||||||
<file alias="create-addon">raster/startup/big/create-addon.png</file>
|
<file alias="create-addon">raster/startup/big/create-addon.png</file>
|
||||||
|
|
Loading…
Reference in a new issue