You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

133 lines
3.6 KiB

package com.quillstudios.pokegoalshelper
/**
* Configuration for Pokemon screen regions
* All values are percentages (0.0 to 1.0) of screen dimensions
*
* To adjust regions:
* 1. Run the app and view overlay on Pokemon screen
* 2. Note which regions are misaligned
* 3. Adjust the percentage values below
* 4. Recompile and test
*
* Tips:
* - x/y are top-left corner positions
* - width/height are dimensions
* - All values relative to screen size (0.0 = 0%, 1.0 = 100%)
*/
object RegionConfig {
// Pokeball icon (usually top-left corner)
const val POKEBALL_X = 0.04
const val POKEBALL_Y = 0.02
const val POKEBALL_WIDTH = 0.05
const val POKEBALL_HEIGHT = 0.02
// Pokemon nickname (usually top-left area)
const val NICKNAME_X = 0.09 // 5% from left edge
const val NICKNAME_Y = 0.02 // 15% from top
const val NICKNAME_WIDTH = 0.25 // 40% of screen width
const val NICKNAME_HEIGHT = 0.025 // 8% of screen height
// Pokemon level (usually near nickname)
const val LEVEL_X = 0.45
const val LEVEL_Y = 0.02
const val LEVEL_WIDTH = 0.15
const val LEVEL_HEIGHT = 0.025
// Game source icon (usually near pokeball)
const val GAME_SOURCE_X = 0.77
const val GAME_SOURCE_Y = 0.018
const val GAME_SOURCE_WIDTH = 0.06
const val GAME_SOURCE_HEIGHT = 0.03
// Favorite star (usually top-right corner)
const val FAVORITE_X = 0.87
const val FAVORITE_Y = 0.015
const val FAVORITE_WIDTH = 0.08
const val FAVORITE_HEIGHT = 0.035
// Pokemon species name
const val SPECIES_X = 0.26
const val SPECIES_Y = 0.355
const val SPECIES_WIDTH = 0.21
const val SPECIES_HEIGHT = 0.03
// Pokemon types (usually badges/icons)
const val TYPES_X = 0.6
const val TYPES_Y = 0.355
const val TYPES_WIDTH = 0.35
const val TYPES_HEIGHT = 0.025
// Stamps/ribbons (usually top-right area)
const val STAMPS_X = 0.04
const val STAMPS_Y = 0.4125
const val STAMPS_WIDTH = 0.24
const val STAMPS_HEIGHT = 0.03
// Labels (usually bottom area)
const val LABELS_X = 0.65
const val LABELS_Y = 0.4125
const val LABELS_WIDTH = 0.3
const val LABELS_HEIGHT = 0.03
// Stats section (usually right side)
const val STATS_X = 0.1
const val STATS_Y = 0.47
const val STATS_WIDTH = 0.43
const val STATS_HEIGHT = 0.2
// Moves section (usually bottom area)
const val MOVES_X = 0.7
const val MOVES_Y = 0.47
const val MOVES_WIDTH = 0.25
const val MOVES_HEIGHT = 0.2
// Ability (usually near nature)
const val ABILITY_X = 0.1
const val ABILITY_Y = 0.71
const val ABILITY_WIDTH = 0.35
const val ABILITY_HEIGHT = 0.03
// Nature (usually top-right)
const val NATURE_X = 0.55
const val NATURE_Y = 0.71
const val NATURE_WIDTH = 0.35
const val NATURE_HEIGHT = 0.03
// Original Trainer name (usually bottom-left)
const val OT_NAME_X = 0.22
const val OT_NAME_Y = 0.778
const val OT_NAME_WIDTH = 0.27
const val OT_NAME_HEIGHT = 0.02
// Original Trainer ID (usually near OT name)
const val OT_ID_X = 0.67
const val OT_ID_Y = 0.778
const val OT_ID_WIDTH = 0.25
const val OT_ID_HEIGHT = 0.02
// Gender symbol (usually small icon near name)
const val GENDER_X = 0.45
const val GENDER_Y = 0.15
const val GENDER_WIDTH = 0.05
const val GENDER_HEIGHT = 0.05
// Marks (usually bottom-right)
const val MARKS_X = 0.75
const val MARKS_Y = 0.85
const val MARKS_WIDTH = 0.2
const val MARKS_HEIGHT = 0.05
}