Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CPSDisplay/cpsdisplay

Repository files navigation

CPS Display

CPS Display is a forge mod for minecraft 1.8.9 which display your in-game Clicks Per Seconds.

Example

But i like customization, so i tried to make this mod easily customizable.

All Settings

Ok let's break it down

Summary

  1. Settings GUI
  2. CPS Display overlay
  3. Text settings
  4. Background settings
  5. Rainbow settings

Settings GUI

To open the mod settings gui, you can press the "P" key (you can change the key in the Controls menu) or type in the chat one of the two commands: /cpsd /cpsdisplay.

CPS Display overlay

Appearance in settings

In settings GUI you still can see how will look the final result.

The background is cut off around the overlay so you don't need to quit and reopen the menu settings to check if it's looking good or not

Overlay

Move

To move the overlay you just need to click on the text in the settings gui and drag where you want.

A red rectangle will show if you can move the overlay

Move Overlay

Text settings

We have 4 buttons

All Text Settings

Show text

This button show or hide the gui overlay.

Text scale

The scale button can scale to 10.0% or 400.0%.

If the slider is close to X50.0% or X00.0%, its value will be rounded toX50.0% or X00.0% rather than decimal number (like X49.86%)

Rounded Text Scale

Text color

By clicking on this button, a new window appears showing us a color picker

Text Color Picker

By using this color picker you can easily choose what color you want (you can't change the opacity).

The color selected is showed at the right of the color button.

Text Color Button Custom Color

Text mode

This button has four different modes:

  1. Left
  2. Right
  3. Left & Right
  4. Custom

The most important mode is Custom, the others are doing what their name says:

  • Left show your left clicks per seconds only
  • Right show your right clicks per seconds only
  • Left & Right show your left and right clicks per seconds

By selecting Custom a text field will appear right above the mode button

Text Mode Custom

You can write 999 characters inside of the textfield, i hope it's enough.

Three important things to know:

  1. {0} will be replaced by your left clicks
  2. {1} will be replaced by your right clicks
  3. You can use minecraft color code you just need to replace § by &

So you can do weird things like this with the following text &a{0}&r &l&k|&r &d{1} &b&m&n&oCPS

Text Mode Customized

Background settings

We have 2 buttons for the background

Background Settings

Background color

Same as Text Color but you can change the opaicty of the color.

Background Margin

You can set the background margin from 0 to 99. But 99 is really big, i don't think you want this

Background Margin 99

Warning Background margin is also scaled by Text Scale

Rainbow settings

We have 2 buttons for the rainbow

Rainbow Settings

Rainbow

You can enable or disable rainbow.

If you enable it, the custom text color will not be shown and will be overriden by the rainbow color.

Warning Rainbow is a uniform color changing by the time, there is no gradient for now.

Speed

How fast the color is changing, from 0.1 to 3.0.