Added: #2499 Information about frames which do not have ShowFrame tag

This commit is contained in:
Jindra Petřík
2025-08-02 13:02:03 +02:00
parent be5ead4087
commit 041a9de9e1
4 changed files with 10 additions and 2 deletions

View File

@@ -65,4 +65,5 @@ configuration.removed = WARNING: This configuration was REMOVED. It is unused.
#after 24.0.1
decompilationWarning.as2.noUninitializedClassFieldsDetection = WARNING: This class was decompiled without detecting uninitialized class fields.
decompilationWarning.obfuscatedIdentifiers = WARNING: The original code has obfuscated identifiers.
decompilationWarning.replacementsFollow = List of replacements follows:
decompilationWarning.replacementsFollow = List of replacements follows:
frame.withoutShowFrame = without ShowFrame

View File

@@ -66,4 +66,5 @@ configuration.removed = VAROV\u00c1N\u00cd: Tato konfigurace byla ODSTRAN\u011aN
#after 24.0.1
decompilationWarning.as2.noUninitializedClassFieldsDetection = VAROV\u00c1N\u00cd: Tato t\u0159\u00edda byla dekompilov\u00e1na bez detekce neinicializovan\u00fdch pol\u00ed t\u0159\u00edd.
decompilationWarning.obfuscatedIdentifiers = VAROV\u00c1N\u00cd: P\u016fvodn\u00ed k\u00f3d m\u00e1 obfuskovan\u00e9 identifik\u00e1tory.
decompilationWarning.replacementsFollow = N\u00e1sleduje seznam n\u00e1hrad:
decompilationWarning.replacementsFollow = N\u00e1sleduje seznam n\u00e1hrad:
frame.withoutShowFrame = bez ShowFrame

View File

@@ -16,6 +16,7 @@
*/
package com.jpexs.decompiler.flash.timeline;
import com.jpexs.decompiler.flash.AppResources;
import com.jpexs.decompiler.flash.tags.DoActionTag;
import com.jpexs.decompiler.flash.tags.FrameLabelTag;
import com.jpexs.decompiler.flash.tags.ShowFrameTag;
@@ -168,6 +169,9 @@ public class Frame implements TreeItem, Exportable {
if (!labels.isEmpty()) {
name += " (name: " + String.join(", ", labels) + ")";
}
if (allInnerTags.isEmpty() || !(allInnerTags.get(allInnerTags.size() - 1) instanceof ShowFrameTag)) {
name += " - " + AppResources.translate("frame.withoutShowFrame");
}
return name;
}