Jump to content
Korean Random
Sign in to follow this  
zerger3

how to edit big loading timer?

Recommended Posts

hello,

i want to edit the loading timer at the start of the game, not the one in the top right corner.

i want to change the color and the font used :)

how do i do this? i found how to edit the clock in the top right but not this.

thank you for your help

Edited by zerger3

Share this post


Link to post

Short link
Share on other sites

I'm not familiar with snippets, but fom what I managed to figure out is that you need to add something like this in the elements.xc file:

{
  "$delay": 100,
  "timerBig": {
    "time": {

    }
  }
},

and then, in the time subsection you should put a code to change the timer's font, color etc., but I don't know how...

Edited by konrad509

Share this post


Link to post

Short link
Share on other sites
i want to edit the loading timer at the start of the game, not the one in the top right corner.

Use this snippet:

{
  "timerBig": {
    "$delay": 100,
    "$interval": 15,
    "time": {
      "dots": {
        "$textFormat": {
          "color": "0xFFFFFF",
          "font": "$TitleFont"
        }
      },
      "secondsTF": {
        "$textFormat": {
          "color": "0xff0000",
          "font": "$TitleFont"
        }
      },
      "minutesTF": {
        "$textFormat": {
          "color": "0xFFFFFF",
          "font": "$TitleFont"
        }
      }
    }
  }
}

But in this element not all parts of text can have changed color (only minutes and seconds).

Text, which indicates requirement for win, can`t be changed too.

Edited by Kotyarko_O
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Text, which indicates requirement for win, can`t be changed too.

 

Sure? Untested, but it should be:

"timerBig": {
  "win": {
    "winText": {
      "$textFormat": { "font": "$FieldFont", "size": 40 }
       }
   }
}

Share this post


Link to post

Short link
Share on other sites

Than you did something wrong

All right.

'snippet'

{
  "timerBig": {
    "$delay": 100,
    "$interval": 15,
    "time": {
      "dots": {
        "$textFormat": {
          "color": "0xff0000",
          "font": "$TitleFont"
        }
      },
      "secondsTF": {
        "$textFormat": {
          "color": "0xff0000",
          "font": "$TitleFont"
        }
      },
      "minutesTF": {
        "$textFormat": {
          "color": "0xff0000",
          "font": "$TitleFont"
        }
      }
    },
    "win": {
      "winText": {
        "$textFormat": { 
          "font": "$FieldFont",
	  "size": 40,
          "color": "0xff0000"
	}
      }
    }
  }
}

'screenshot'

post-16412-0-24958100-1447592701_thumb.jpg
Edited by Kotyarko_O

Share this post


Link to post

Short link
Share on other sites

'Snippet'

"timerBig": {
             "_alpha": 100,
             "_x": "timerBig._x",
             "_y": "timerBig._y",
             "message": {
               "message": {
                 "_height": 50,
                 "$textFormat": { "font": "Tannenberg Fett", "size": 40, "color": "0xFFFFFF" }
               }
             },
             "win": {
               "winText": {
                 "$textFormat": { "font": "Tannenberg Fett", "size": 30, "color": "0x00FFFF" }
               }
             },
             "time": {
               "secondsTF": {
                 "_x": "secondsTF._x + 3", //no function
                 "$textFormat": { "font": "Tannenberg Fett", "size": 50, "color": "0xFFFFFF" }
               },
               "minutesTF": {
                 "$textFormat": { "font": "Tannenberg Fett", "size": 50, "color": "0xFFFFFF" }
               }
             }
           }
        }

'Screen'

post-31178-0-68601200-1447592819_thumb.jpg
Edited by OlliN

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...