ZEP Guidebook (KR)
  • ๐Ÿ‘‹Hello ZEP Script
  • ZEP Script ๊ฐ€์ด๋“œ
    • ZEP Script ๊ฐœ๋ฐœ ๊ฐ€์ด๋“œ
      • ์‰ฌ์šด ๊ฐœ๋ฐœ ๊ฐ€์ด๋“œ
      • Javascript ๊ฐœ๋ฐœ ๊ฐ€์ด๋“œ
      • Typescript ๊ฐœ๋ฐœ ๊ฐ€์ด๋“œ
      • ZEP Script ๋ฐฐํฌ ๊ฐ€์ด๋“œ
    • ZEP Script ๋”ฐ๋ผํ•˜๊ธฐ
      • ๊ธฐ์ดˆ ์˜ˆ์ œ ์ฝ”๋“œ
        • โœ‰๏ธ๋ฉ”์‹œ์ง€ ์ถœ๋ ฅํ•ด๋ณด๊ธฐ
        • โ™ป๏ธZEP APP lifecycle ์ดํ•ดํ•˜๊ธฐ
        • ๐Ÿ‘ค์บ๋ฆญํ„ฐ ์ด๋ฏธ์ง€ ๋ฐ”๊พธ๊ธฐ
        • ๐Ÿ–ผ๏ธ๋‚˜๋งŒ์˜ UI ๋งŒ๋“ค๊ธฐ
        • ๐Ÿ’ข2์ดˆ ์Šคํ„ด ํšจ๊ณผ ๋งŒ๋“ค์–ด๋ณด๊ธฐ
      • ZEP Script ์˜ˆ์ œ ์ฝ”๋“œ
        • โฐํƒ€์ด๋จธ
        • โฑ๏ธ๋ฐฉํƒˆ์ถœ ํƒ€์ด๋จธ
        • ๐Ÿค›์‚ฌ์ด๋“œ๋ฐ” ์•ฑ
        • ๐ŸงŸโ€โ™‚๏ธ์ข€๋น„ ๊ฒŒ์ž„
        • ๐ŸŽจํŽ˜์ธํŠธ๋งจ ๊ฒŒ์ž„
        • ๐Ÿ™†โ€โ™€๏ธ์ดˆ์„ฑ ํ€ด์ฆˆ
        • ๐Ÿ’ฉ๋˜ฅํ”ผํ•˜๊ธฐ ๊ฒŒ์ž„
        • ๐ŸฅŠ๊ฒฐํˆฌ ๊ฒŒ์ž„
        • ๐Ÿƒโ€โ™‚๏ธ๋‹ฌ๋ฆฌ๊ธฐ
      • Custom Label ์˜ˆ์ œ ์ฝ”๋“œ
        • Type-A
        • Type-B
        • Type-C
        • Type-D
        • Type-E
        • Type-F
        • Type-G
        • Type-H
        • Type-I
        • Type-J
      • ์‚ฌ์ด๋“œ ๋ฐ” ์•ฑ ์˜ˆ์ œ ์ฝ”๋“œ
        • ๐Ÿ”นImage List
        • ๐Ÿ”นText List
        • ๐Ÿ”นText Button List
        • ๐Ÿ”นRanking List
        • ๐Ÿ”นSelect List
    • ZEP Script FAQ
    • ๋ถ€๋ก
      • ๐ŸŽกZEP ์Šคํฌ๋ฆฝํŠธ ํ™œ์šฉ ์‚ฌ๋ก€
      • ๐Ÿ—บ๏ธ์ŠคํŽ˜์ด์Šค์™€ ๋งต ์ดํ•ดํ•˜๊ธฐ
      • โŒจ๏ธ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ํ‚ค์ฝ”๋“œ ํ‘œ
      • ๐ŸŽจ์Šคํ”„๋ผ์ดํŠธ์‹œํŠธ ์ดํ•ดํ•˜๊ธฐ
      • ๐ŸŒ€TileEffectType ์ƒ์„ธ ์„ค๋ช…
      • ๐Ÿ“Œ๊ธฐ์ค€ ์ขŒํ‘œ
      • ๐Ÿ›ฐ๏ธ์™ธ๋ถ€ API ํ†ต์‹ ํ•˜๊ธฐ
      • ๐Ÿ”ฐURL ์ฟผ๋ฆฌ์ŠคํŠธ๋ง ํ™œ์šฉํ•˜๊ธฐ
      • ๐Ÿชง์œ„์ ฏ์—์„œ ์‚ฌ์šฉ๊ฐ€๋Šฅํ•œ ๋ฌธ๋ฒ•
      • ๐Ÿ”˜๋ชจ๋ฐ”์ผ๋ฒ„ํŠผ ์ด๋ฏธ์ง€ ๋ณ€๊ฒฝํ•˜๊ธฐ
      • โœณ๏ธZEP ์Šคํฌ๋ฆฝํŠธ ์ƒํ˜ธ์ž‘์šฉ ์˜ค๋ธŒ์ ํŠธ ๊ฐ€์ด๋“œ
      • ๐Ÿ“‡์˜ค๋ธŒ์ ํŠธ npcProperty
  • ZEP SCRIPT API
    • ๐Ÿ“˜ZEP Script API
      • API Summary
      • ScriptApp
        • Lifecycle
        • Field
        • Storage
        • Event Listeners
        • Callbacks
        • Methods
      • ScriptMap
        • Field
        • Methods
      • ScriptPlayer
        • Field
        • Methods
      • ScriptWidget
        • Field
        • Event Listeners
        • Methods
      • UtilityClass
        • Time
Powered by GitBook
On this page
  • ์ด๋ฏธ์ง€
  • ์˜ˆ์ œ ์ฝ”๋“œ

Was this helpful?

  1. ZEP Script ๊ฐ€์ด๋“œ
  2. ZEP Script ๋”ฐ๋ผํ•˜๊ธฐ
  3. Custom Label ์˜ˆ์ œ ์ฝ”๋“œ

Type-D

PreviousType-CNextType-E

Last updated 1 year ago

Was this helpful?

Type-D๋Š” Type-C์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ ํŒ€ ์ „ ์ ์ˆ˜๋ฅผ ๊ธฐ๋กํ•  ๋•Œ ์ž์ฃผ ์“ฐ์ด๋ฉฐ, 3์ค„๋กœ ๋‚˜๋ˆ„์–ด ์“ธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ด๋ฏธ์ง€

์˜ˆ์ œ ์ฝ”๋“œ

function showLabelTypeD(player, key, text1, text2, text3) {
    const isMobile = player.isMobile;
    const topGap = isMobile ? 10 : -2; // 60px from the top on mobile and 48px on PC.
    /**
     * size based @labelPercentWidth
     * XL: isMobile ? 90 : 50;
     * L: isMobile ? 80 : 40;
     * M: isMobile ? 70 : 28;
     * S: isMobile ? 60 : 20
     */
    const labelPercentWidth = isMobile ? 60 : 20;
    const labelDisplayTime = 300000;

    const parentStyle = `
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;
    `;

    const firstRowStyle = `
    font-size: ${isMobile ? "16px" : "18px"};
    font-weight: 700; 
    color: #FFEB3A;`;

    const secondRowStyle = `
    font-size: ${isMobile ? "16px" : "18px"};
    font-weight: 700; 
    color: white;`;

    const thirdRowStyle = `
    font-size: ${isMobile ? "16px" : "24px"};
    font-weight: 800;
    color: white;`;

    const customLabelOption = {
        key: key,
        borderRadius: "12px",
        fontOpacity: false,
        padding: "8px",
    };

    let htmlStr = `<span style="${parentStyle}">
        <span style="${firstRowStyle}">${text1}</span>
        <span style="${secondRowStyle}">${text2}</span>
        <span style="${thirdRowStyle}">${text3}</span>
    </span>`;

    player.showCustomLabel(htmlStr, 0xffffff, 0x27262e, topGap, labelPercentWidth, 0.64, labelDisplayTime, customLabelOption);
}