Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "Maniac Patch" v190122 (Adds Text drawing) by BingShan #1608

Closed
Ghabry opened this issue Jan 28, 2019 · 1 comment
Closed

Support "Maniac Patch" v190122 (Adds Text drawing) by BingShan #1608

Ghabry opened this issue Jan 28, 2019 · 1 comment

Comments

@Ghabry
Copy link
Member

Ghabry commented Jan 28, 2019

Before solving this #1424 should be solved first.
Compared to the questionable features in #1557 this one is cool again.

Adds text drawing, which gives me a reason to finish #748 ;)

Download: https://ux.getuploader.com/xingqier/download/136

Technically it works like a "Show Picture" which means you can use "Move Picture" afterwards for effects.

The stuff marked in red is same as in picture commands

captura

captura2

captura3

@ > Show String Picture:
    @ > Display a string picture:
    Generates a picture from the specified string.
    After it is generated, it can be treated like a normal picture.
    
    
    Disabling the background, borders, gradients, and shadows will reduce the cost of generation.
        Control character:
        Some control characters can be used in strings.
        
        The value in [] is valid for the variable reference by v.
        $a-za-z: draws special characters.
         : Draw a single.
        c [n]: Change the character color to the number n.
        d [n]: Aligns the variable values at least n digits (0 fills).
        n [n]: Draw the number n hero name.
        t [n]: currently not implemented.
        
    
    v [n]: Draw the value of the variable number n.
        Display position-> coordinates:
        Specifies the meaning of the position value.
        
        
    (Traditional pictures are fixed at center coordinates.)
        Picture size:
        Specifies the size of the picture to generate.
        
        
    Set the value type to automatic or the value to 0 to adjust it to the appropriate size.
        ・font Name:
        Specifies the font to use for drawing.
    
    
    Blank to see the system settings for the database.
        Font Size:
        Specifies the size of the font used for drawing.
        
        
    Valid values are from 1 to 255, with a default of 12.
        Character Spacing:
        Specifies the space to be empty per character.
        
        
    The valid values are 0 to 255 and the default is 0.
        Line spacing:
        Specifies the space to be empty per line.
        
        
    The valid values are 0 to 255, and the default is 4.
        Bold:
        
        
    Apply bold to the font.
        ・system Graphics:
        Specifies the graphic to use for drawing.

<システム設定><System settings="">Select () to view the system settings for the database.
        Wallpaper
        
        
    Specifies the background type of the window.
        Draw a Frame:
        Specifies whether the window has a border.
        
        
    If either size is less than 8px, it will not be drawn regardless of the setting.
        Enable outer margins:
        Specifies whether to consider the area of the frame in the calculation of the picture size or the drawing position of the character.
        
        
    When enabled, the area is 8px to left and right, and 10px up and down.
        Enable character gradients:
        Specifies whether to enable character gradients, such as those used in other functions, such as a text display.
        
        
    If disabled, the color is drawn from the top left (0, 0) of each color of 16 * 16px.
        Enable character Shadows:
        
        
    Specifies whether to enable character shadows, such as text display, that are used by other functions.
        Preview limit:    
        Display position: Fixed at the top left coordinate (0, 0).
        Size: auto-calculated for non-constant specification.
        Magnification: Fixed at 100% (the preview itself has a double display function).
        Transparency: fixed at 0%.
        Effect: all disabled.
        
    
    Font Size: It is 12 except for constant specification.
    Code: 3007
        String argument: * 1 string to display * 1 filename * 1 font name * 1... A byte type prefix that represents the type of value that follows.
   
    Currently only 0x01 valid
        Numeric arguments:
            00: Value type
            00 to 03: How to specify the picture id (constant = 0, variable, variable number variable)
            04 to 07: How to specify the display position (constant = 0, variable, variable number variable)
            08-11: How to specify magnification (constant = 0, variable, variable number variable)
            12 to 15: How to specify transparency (constant = 0, variable, variable number variable)
            16 to 19: How to specify the picture size (constant = 0, variable, variable number variable)
            20 to 23: How to specify font size (constant = 0, variable, variable number variable)

24 to 27: How to specify the coordinate type (center = 0, top left, bottom right, bottom right, top, bottom, left, right)
        01: Picture ID
        02: Position X
        03: Position Y
        04: Magnification ratio
        05: Transparency
        06: Red Color
        07: Green Color
        08: Blue Color
        09: Saturation
        10: Types of special effects
        11: Special Effects level
            12: Additional Effects
            00 ~ 04: Blend Mode (none = 0, multiply, add, overlay)
            05: Horizontal Inversion
        
        06: Vertical Inversion
            13: Option 1
            00 to 07: Map scrolling
            08 ~ 11: Background type (none = 0, enlarge, tile)
            12: Do not draw a frame
            13: Gradient Disabled
            14: Shadow Disabled
            15: Bold
        
        16: Margin Disabled
            14: Option 2
            00 to 07: Enable Transparent Color
            08 to 15: Character spacing
            
        16 to 23: line spacing
        15: Layers on the map
        16: Layers in combat
        17: Erase Condition/applied screen effect
        18: Picture Width
        19: Picture Vertical width
        20: Font Size </System></システム設定>
@Ghabry
Copy link
Member Author

Ghabry commented Jun 14, 2019

Closing, as handled now as part of #1818

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant