Hop til indhold
Stavox

Martus

Recommended Posts

Hej. Jeg vil lige dele en font E2 med jer.

Wire E til wirelink og U til user på en EGP v3.

 

Klik på det font du vil have printet chatten.

 

Ønsker du flere eller færre fonts kan du ændre det på linje 10.

 

E2 Kode:

Spoiler

@name Fonts
@inputs E:wirelink U:entity
@outputs 
@persist Fonts:array
@trigger 

if(~E & E) {reset()}
elseif(first()) {
    
    Fonts = array(
        "WireGPU_ConsoleFont", #<-- Default
        "Coolvetica",
        "Arial",
        "Lucida Console",
        "Trebuchet",
        "Courier New",
        "Times New Roman",
        "ChatFont",
        "Marlett"
    )
    
    function number wirelink:egpButton(Idx:number, Cur:vector2) {
        TL = This:egpPos(Idx) - This:egpSize(Idx) / 2 * (0 ? 0 : 1)
        BR = This:egpPos(Idx) + This:egpSize(Idx) / (0 ? 1 : 2)
        return inrange(Cur, TL, BR) exit()
    }
    
    function void m(S:string) {
        printColor(vec(235),"[",vec(127,36,36),"Fonts",vec(235),"]:",vec(75,205,75)," ",S)
    }
    
    E:egpClear()
    
    for(I = 1, Fonts:count()) {
        E:egpBox(I+150,vec2(256, I*35),vec2(512, 34)) E:egpColor(I+150,vec(33, 33, 33))
        E:egpText(I, Fonts[I,string],vec2(20, I*35)) E:egpAlign(I, 0, 1) E:egpFont(I,Fonts[I,string], 28)
    }
    
} elseif(~U & U & U:owner() & opcounter() < 4000) {
    local Cur = E:egpCursor(U)
    for(I = 150, Fonts:count()+150) {
        if(E:egpButton(I, Cur)) {m("Fontet er: "+Fonts[I-150,string]) break}
    }
}

 

 

Link til kommentar

Arkiveret

Dette emne er nu arkiveret og er lukket for yderligere svar

×
×
  • Tilføj...

COOKIE- OG PRIVATLIVSPOLITIK PÅ STAVOX.DK

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privatlivspolitik - Vilkår for brug.