DeathlessAphroditeOriginal Posted June 4, 2012 Author Share Posted June 4, 2012 (edited) Textfield properties are kind of the weakness of the decompiler. They are usually completely wrong and have to be fixed manually (by looking up the original values in SWiX). In this case it may be that some multi-line property is not enabled even though it should be. Thanks! I have opened the original dialoguemenu.swf with SWiX and the one from the repository, I think I've found the erroneous multiline property. Working on it. Ok, found it. I'd say it's much easier to use SWiX for our goals, I've not tried yet but I think colors can be changed directly inside the SWF file, right? Edited June 4, 2012 by Deathless Aphrodite Link to comment Share on other sites More sharing options...
steve40 Posted June 5, 2012 Share Posted June 5, 2012 I noticed a small glitch: if you use the .fla file from the repository for compiling, you get it no matter what. See how the word Gray-Mane gets cut (below), whereas vanilla (above) simply starts a new paragraph.[ AH! I was having this problem with the center line of text not wrapping when I enlarged the fonts. I didn't realise that the vanilla form didn't have this problem. I did experiment with using Sothink to change the property from single line to multiline but it didn't seem to work :rolleyes: It's good to know it can be easily fixed, I'll have to check out SWiX. So now I'll be able to use a font size greater than 30 :biggrin: I won't be able to do much more work on this until Thursday evening after my wife has gone to work :tongue: Link to comment Share on other sites More sharing options...
DeathlessAphroditeOriginal Posted June 5, 2012 Author Share Posted June 5, 2012 Wives must be the priority! :) I've also managed to find the colors from the actionscript inside the swf/xml by comparing two files differing only in said colors. They're not stored in hex format though: ff0000 becomes 16711680, which is its decimal equivalent. The "new topic" color values are saved under DoInitAction SpriteId="53", old topic under 54.This allows us to edit the swf directly with SWiX, although it is not as time saving as I thought. Link to comment Share on other sites More sharing options...
steve40 Posted June 5, 2012 Share Posted June 5, 2012 I managed to get on the computer for a few minutes last night and had a play with SWiX. It's a nice little tool. By comparing it with Sothink, I discovered that Sothink has a little glitch when setting the multiline property: setting "multiline nowrap" actually wraps the text, while setting "multiline" doesn't wrap the text :facepalm: so no wonder I couldn't get the text to wrap when I was testing earlier :wallbash: It is "text 18" that has the wrong multiline setting. Using either Sothink or SWiX is equally easy, but SWiX uses strange values for some settings such as font size etc. I was thinking of doing three font size options: Regular (default- dialogue font size 24, subtitle font size 22)Large (dialog fonts size 30, subtitle font size 26)extra Large (dialog font size 36, subtitle font size 32) I'll have to test the subtitle font sizes to make sure there are no issues there. I edited the scripts to add a conditional statement for setting the alpha values of new and old text for selected and unselected dialogue, so you could potentially have 4 different alpha settings active :biggrin: Eg. new selected (alpha = 100), new unselected (alpha = 90), old selected (alpha = 80), old unselected (alpha = 70). I'll post the code when I get a chance. I also added an alpha value to the activated topic to make it brighter than default. I seem to have a glitch that after activating a topic, when the npc finished speaking and it returns to the dialogue menu, the previous topic text stays on the screen superimposed underneath the topic text selected in main menu! I'm not sure if this is a problem with the latest vanilla actionscript, or whether I have messed something up in the script. Will look into it further. I was thinking about what we might call this mod. I came up with "Ez2Read Dialogue Menu". What do you think? Link to comment Share on other sites More sharing options...
DeathlessAphroditeOriginal Posted June 6, 2012 Author Share Posted June 6, 2012 I was thinking about what we might call this mod. I came up with "Ez2Read Dialogue Menu". What do you think? You wrote Ez2See in your sig, and I think I like that better! Ez2Read is nice too, though. Good idea with the alpha values, right now I've been using scripts with no alpha, just slightly different colors as was suggested above. These are a couple of examples, I have edited the file extension to distinguish them. Link to comment Share on other sites More sharing options...
steve40 Posted June 9, 2012 Share Posted June 9, 2012 (edited) Let's settle with the name "EZ2C Dialogue Menu" :thumbsup: DA: Git the latest decompiled vanilla scripts from the repository, they have been heavily reworked. All the variables have been updated to user-friendly ones. I'm not sure if the older scripts will be compatible with the newest version or not.Monday is a holiday, so I plan to do a lot of work on our mod over the long weekend :thumbsup: EDIT: I've attached updated scripts. These are based on the latest vanilla versions in the Repository. 1) added the conditional statements to set the alpha values.2) put in various color options. Just uncomment the colors you want to use.3) fixed two lines in UpdateList() function in DialogueCenteredList.as that were causing topics to disappear if larger dialogue fonts were used! I've created 5 color options: GoldRedWhite-RedYellow-RedGreen-Red In 3 different font sizes - regular, large and extra large. I'll set up a Nexus page soon and upload them :thumbsup: Edited June 9, 2012 by steve40 Link to comment Share on other sites More sharing options...
steve40 Posted June 9, 2012 Share Posted June 9, 2012 (edited) The mod has been launched 8) EZ2C DIALOGUE MENU Edited June 9, 2012 by steve40 Link to comment Share on other sites More sharing options...
DeathlessAphroditeOriginal Posted June 9, 2012 Author Share Posted June 9, 2012 Let's settle with the name "EZ2C Dialogue Menu" :thumbsup: DA: Git the latest decompiled vanilla scripts from the repository, they have been heavily reworked. All the variables have been updated to user-friendly ones. I'm not sure if the older scripts will be compatible with the newest version or not.Monday is a holiday, so I plan to do a lot of work on our mod over the long weekend :thumbsup: EDIT: I've attached updated scripts. These are based on the latest vanilla versions in the Repository. 1) added the conditional statements to set the alpha values.2) put in various color options. Just uncomment the colors you want to use.3) fixed two lines in UpdateList() function in DialogueCenteredList.as that were causing topics to disappear if larger dialogue fonts were used! I've created 5 color options: GoldRedWhite-RedYellow-RedGreen-Red In 3 different font sizes - regular, large and extra large. I'll set up a Nexus page soon and upload them :thumbsup: Thanks! I haven't been able to do anything else on the mod because of work, and I'll be quite busy for 7 more days at the least. You go ahead and upload everything, you're doing an excellent job. Link to comment Share on other sites More sharing options...
Exurim Posted June 9, 2012 Share Posted June 9, 2012 (edited) double Edited June 9, 2012 by Exurim Link to comment Share on other sites More sharing options...
Exurim Posted June 9, 2012 Share Posted June 9, 2012 Is it possible to do this for items aswell? Mehrunes Razor Nettlebane Mace of Molag Bal like: http://winds-d2.com/uploadfile/20100312074258_rw1sdg.jpg Link to comment Share on other sites More sharing options...
Recommended Posts