summaryrefslogtreecommitdiffstats
path: root/sigmodr/MapEffectUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-11-08 06:15:08 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-11-08 06:15:08 +0000
commit8bad37e82371bd41864903ac0d6f49808ad119bf (patch)
tree77f0cb46059654cefb357d6eb4064c5740edf3d4 /sigmodr/MapEffectUI.cpp
parentc127c0dae65a7600e0ab30b634f25d4915c61d16 (diff)
downloadsigen-8bad37e82371bd41864903ac0d6f49808ad119bf.tar.gz
sigen-8bad37e82371bd41864903ac0d6f49808ad119bf.tar.xz
sigen-8bad37e82371bd41864903ac0d6f49808ad119bf.zip
[FIX] No more asserts in sigmod
[FIX] Moved to using *ById instead of *Index methods in sigmod [FIX] Tilemaps are now collaged (not completely done on the editing side yet) [FIX] Removed the resource files (drawn natively instead) [FIX] ATBTimer now uses the built-in QTimer in a QObject [FIX] Coordinates are now edited on the map for warps, trainers, and effects [FIX] Tiles are now completely scripted [FIX] Config is now thread-safe git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@308 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'sigmodr/MapEffectUI.cpp')
-rw-r--r--sigmodr/MapEffectUI.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/sigmodr/MapEffectUI.cpp b/sigmodr/MapEffectUI.cpp
index 87f79509..4708683a 100644
--- a/sigmodr/MapEffectUI.cpp
+++ b/sigmodr/MapEffectUI.cpp
@@ -20,7 +20,6 @@
// Sigmod includes
#include "../sigmod/Item.h"
-#include "../sigmod/Map.h"
#include "../sigmod/MapEffect.h"
#include "../sigmod/Sigmod.h"
#include "../sigmod/Skin.h"
@@ -38,8 +37,6 @@ Sigmodr::MapEffectUI::~MapEffectUI()
void Sigmodr::MapEffectUI::refreshGui()
{
- const Sigmod::Map* map = qobject_cast<const Sigmod::Map*>(original()->parent());
- varCoordinate->setMaximum(QPoint(map->width(), map->height()));
for (int i = 0; i < sigmod()->skinCount(); ++i)
{
const Sigmod::Skin* skin = sigmod()->skin(i);
@@ -50,7 +47,6 @@ void Sigmodr::MapEffectUI::refreshGui()
void Sigmodr::MapEffectUI::setGui()
{
varName->setText(qobject_cast<Sigmod::MapEffect*>(modified())->name());
- varCoordinate->setValue(qobject_cast<Sigmod::MapEffect*>(modified())->coordinate());
varSkin->setCurrentIndex(varSkin->findData(qobject_cast<Sigmod::MapEffect*>(modified())->skin()));
varScript->setValue(qobject_cast<Sigmod::MapEffect*>(modified())->script());
varIsGhost->setChecked(qobject_cast<Sigmod::MapEffect*>(modified())->isGhost() ? Qt::Checked : Qt::Unchecked);
@@ -76,11 +72,6 @@ void Sigmodr::MapEffectUI::on_varName_textChanged(const QString& name)
varName->setCursorPosition(cursor);
}
-void Sigmodr::MapEffectUI::on_varCoordinate_valueChanged(const QPoint& coordinate)
-{
- qobject_cast<Sigmod::MapEffect*>(modified())->setCoordinate(coordinate);
-}
-
void Sigmodr::MapEffectUI::on_varSkin_currentIndexChanged(const int skin)
{
qobject_cast<Sigmod::MapEffect*>(modified())->setSkin(varSkin->itemData(skin).toInt());