[FEAT] Add show/hide frame ID toggle
This commit is contained in:
@@ -148,16 +148,25 @@
|
||||
:class="showOffsetLabels ? 'bg-indigo-100 text-indigo-700 dark:bg-indigo-900/40 dark:text-indigo-300' : 'text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700'"
|
||||
class="w-full flex items-center justify-start gap-2 p-2 rounded text-xs font-medium transition-colors"
|
||||
>
|
||||
<i class="fas fa-tag mr-2"></i>Labels
|
||||
<i class="fas fa-tag mr-2"></i>Coordinates
|
||||
</button>
|
||||
</Tooltip>
|
||||
<Tooltip text="Compare with ghost overlays" class="col-span-2">
|
||||
<Tooltip text="Show frame index number">
|
||||
<button
|
||||
@click="showFrameIds = !showFrameIds"
|
||||
:class="showFrameIds ? 'bg-indigo-100 text-indigo-700 dark:bg-indigo-900/40 dark:text-indigo-300' : 'text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700'"
|
||||
class="w-full flex items-center justify-start gap-2 p-2 rounded text-xs font-medium transition-colors"
|
||||
>
|
||||
<i class="fas fa-hashtag mr-2"></i>Frame IDs
|
||||
</button>
|
||||
</Tooltip>
|
||||
<Tooltip text="Compare with ghost overlays">
|
||||
<button
|
||||
@click="showAllSprites = !showAllSprites"
|
||||
:class="showAllSprites ? 'bg-indigo-100 text-indigo-700 dark:bg-indigo-900/40 dark:text-indigo-300' : 'text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700'"
|
||||
class="w-full flex items-center justify-start gap-2 p-2 rounded text-xs font-medium transition-colors"
|
||||
>
|
||||
<i class="fas fa-clone mr-2"></i>Ghost compare
|
||||
<i class="fas fa-clone mr-2"></i>Compare
|
||||
</button>
|
||||
</Tooltip>
|
||||
</div>
|
||||
@@ -284,6 +293,7 @@
|
||||
:allow-cell-swap="allowCellSwap"
|
||||
:show-all-sprites="showAllSprites"
|
||||
:show-offset-labels="showOffsetLabels"
|
||||
:show-frame-ids="showFrameIds"
|
||||
@update-sprite="updateSpritePosition"
|
||||
@update-sprite-cell="updateSpriteCell"
|
||||
@remove-sprite="removeSprite"
|
||||
@@ -383,6 +393,7 @@
|
||||
const allowCellSwap = ref(false);
|
||||
const showAllSprites = ref(false);
|
||||
const showOffsetLabels = ref(false);
|
||||
const showFrameIds = ref(false);
|
||||
const customColor = ref('#ffffff');
|
||||
const isCustomMode = ref(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user