collapse

Author Topic: I figure the winquote.textwrap I hope this help everyone  (Read 1924 times)

0 Members and 1 Guest are viewing this topic.

Offline OldGamer

  • IMT ScreenPack Creator
  • IMT Content Architect
  • *
  • Posts: 1106
  • Country: United States us
  • Last Login:October 11, 2023, 10:45:30 PM
  • Mugen Creator for Stages & Screen Pack
I figure the winquote.textwrap I hope this help everyone
« on: January 18, 2016, 09:40:14 PM »
HOLY MOLLY I figure out how the  winquote.textwrap really works for mugen 1.0 & 1.1  :w00t:
 I want to share this with everyone as well
Here a Picture  how its like now with These setting

And here the setting for the win quota for the victory screen
;Win quote text
winquote.text = "Winner!" ;Default win quote text to show
winquote.offset = 400,400
winquote.font = 8,0,0, 0,255,255
winquote.textwrap = w     ;Word wrap
By using 81 characters


Now here what happen if you add a number 1 with 8,0,0
winquote.offset = 400,400
winquote.font = 8,0,1, 0,255,255
winquote.textwrap = w     ;Word wrap


Now if you try to remove the winquote.textwrap = w  and change the winquote.offset = 400,400 to winquote.offset =  20,370

this is how its look
winquote.text = "Winner!" ;Default win quote text to show
winquote.offset = 20,370
winquote.font = 8,0,1, 0,255,255
;winquote.textwrap = w     ;Word wrap
this is how its look now but you can see that the words line up but not fully covering the rest of the characters with the box


then I figure how to make all 81 characters fit in the box by doing this setting
I remove the W on winquote.textwrap = and I add a letter lower case L

and should look like this
winquote.textwrap = l
then I made the setting to look like this

;Win quote text
winquote.text = "Winner!" ;Default win quote text to show
winquote.offset = 20,370
winquote.font = 8,0,1, 0,255,255
winquote.textwrap = l     ;Word wrap

and I made all 81 characters fit in the box :)


I hope this help everyone when dealing with text and winquote with the victory screen for the mugen 1.0 & 1.1 software :D
« Last Edit: January 18, 2016, 11:59:00 PM by OldGamer »



Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12458
  • Country: Brazil br
  • Last Login:March 21, 2024, 10:58:34 AM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Re: I figure the winquote.textwrap I hope this help everyone
« Reply #1 on: January 18, 2016, 09:59:01 PM »
Oh that is pretty cool!

Offline OldGamer

  • IMT ScreenPack Creator
  • IMT Content Architect
  • *
  • Posts: 1106
  • Country: United States us
  • Last Login:October 11, 2023, 10:45:30 PM
  • Mugen Creator for Stages & Screen Pack
Re: I figure the winquote.textwrap I hope this help everyone
« Reply #2 on: January 19, 2016, 12:27:30 AM »
Oh that is pretty cool!
thank you O Ilusionista I hope this help everyone when making victory screen for there screen pack :)

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: I figure the winquote.textwrap I hope this help everyone
« Reply #3 on: January 20, 2016, 06:06:27 PM »
Sadly, there is not really enough documentation on fonts and how it all works.

Using your line,
8 is the font number.
0 is i believe the colour bank
Colour banks allow you to set up multiple colours for 1 font in a single .FNT file, you define a block of colours by the colour depth when you create the font. If you wanted it to have 8 colours, you define it as an 8 colour font, but you also define 24 colours, Each colour bank is the next block of 8, minus the transparent colour of course.
The last one i think is alignment with 0 being center, 1 being align right and -1 being align left. I think.

The positioning intrigues me a little. Your first has the offset 400,400, logically that should be miles off screen, with or without the text wrap thing.

What happens in the last one where you have used L if you use W instead? Or any other letter, i can't find much in the way of documentation for these values.

This one
Quote
winquote.text = "Winner!" ;Default win quote text to show
winquote.offset = 20,370
winquote.font = 8,0,1, 0,255,255
;winquote.textwrap = w     ;Word wrap
Makes the most sense to me in terms of what is displayed and what your settings are. Position is correct although i'm not sure about the alignment now...

Erm, would be interested to know regardless if those are the only letters or if it doesn't actually matter with that line at all. w and l seem very abitrary as values.

Offline OldGamer

  • IMT ScreenPack Creator
  • IMT Content Architect
  • *
  • Posts: 1106
  • Country: United States us
  • Last Login:October 11, 2023, 10:45:30 PM
  • Mugen Creator for Stages & Screen Pack
Re: I figure the winquote.textwrap I hope this help everyone
« Reply #4 on: January 21, 2016, 06:02:34 AM »
Sadly, there is not really enough documentation on fonts and how it all works.

Using your line,
8 is the font number.
0 is i believe the colour bank
Colour banks allow you to set up multiple colours for 1 font in a single .FNT file, you define a block of colours by the colour depth when you create the font. If you wanted it to have 8 colours, you define it as an 8 colour font, but you also define 24 colours, Each colour bank is the next block of 8, minus the transparent colour of course.
The last one i think is alignment with 0 being center, 1 being align right and -1 being align left. I think.

The positioning intrigues me a little. Your first has the offset 400,400, logically that should be miles off screen, with or without the text wrap thing.

What happens in the last one where you have used L if you use W instead? Or any other letter, i can't find much in the way of documentation for these values.

This oneMakes the most sense to me in terms of what is displayed and what your settings are. Position is correct although i'm not sure about the alignment now...

Erm, would be interested to know regardless if those are the only letters or if it doesn't actually matter with that line at all. w and l seem very abitrary as values.
Play with the value and you see what will happen but I manage to fix my problem when come to winquate with the winquote.textwrap .  The lower case L stand for line wrap and Line wrap is the feature of continuing on a new line when a line is full, such that each line fits in the viewable window by Using winquote.textwrap = l, allowing text to be read from top to bottom without any horizontal scrolling.  :thumbsup: but also you should understand that elecbyte never documented any of the stuff about winquote.textwrap setting or there behavior. well there tons of stuff that elecbyte never cover but that part of learning and  figuring things out right ? by learning and playing with the values setting for the mugen software  :w00t:
« Last Edit: January 21, 2016, 06:13:22 AM by OldGamer »

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

SPIDER-VERSE THE AMAZING MUGENSTORY©EPISODE 10 "THE OTHERVERSE" 1080P BY REB3LTV by Rage
[March 27, 2024, 02:44:21 PM]


D2TD VS Showcase Thread by D2TD
[March 24, 2024, 11:09:37 AM]


Tree Of Erebus Stage 1.1 & 1.0 by MatreroG
[March 22, 2024, 08:13:48 AM]


.Batzarro's. Sprite Edits by MatreroG
[March 20, 2024, 07:58:08 AM]


World Heroes 2 Shura Stage by Vegaz by LightFlare
[March 19, 2024, 12:44:28 PM]


MOVED: Prepare your ****! ***** Soldier gets his **** ready in MUGEN! by Rage
[March 18, 2024, 11:08:23 AM]


[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[March 14, 2024, 01:34:08 PM]


R.I.P. Akira Toriyama "Dragonball Legend" by Rage
[March 12, 2024, 03:01:39 PM]


DBFZ Rocky Field (noon) by jafar
[March 10, 2024, 11:59:23 PM]


World Heroes 2 Neo Geegus Stage by Vegaz by LightFlare
[March 09, 2024, 11:04:56 AM]

* IMT Calendar

March 2024
Sun Mon Tue Wed Thu Fri Sat
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 [28] 29 30
31

SimplePortal 2.3.5 © 2008-2012, SimplePortal