17,19d16 < local defaultPreciseCoordTmpl = "%.1f, %.1f" < local defaultCoordTmpl = "%.0f, %.0f" < local coordTmplStr = defaultCoordTmpl 28d24 < showPreciseCoords = true, 35,38d30 < function LocationFu:IsPreciseCoords() < return self.db.profile.showPreciseCoords < end < 44,48d35 < function LocationFu:TogglePreciseCoords() < self.db.profile.showPreciseCoords = not self.db.profile.showPreciseCoords < self:UpdateFuBarText() < end < 135,141d121 < precise = { < type = 'toggle', < name = L["Show precise coordinates"], < desc = L["Shows the coordinates additional precision"], < get = "IsPreciseCoords", < set = "TogglePreciseCoords", < }, 228,233d207 < if self:IsPreciseCoords() then < coordStrTemplate = defaultPreciseCoordTmpl; < else < coordStrTemplate = defaultCoordTmpl; < end < 248d221 < local coordStr 250,251c223 < coordStr = string.format(coordStrTemplate, x*100, y*100) < table_insert(t, string.format("|cff%02x%02x%02x(%s)|r", r*255, g*255, b*255, coordStr)) --- > table_insert(t, string.format("|cff%02x%02x%02x(%.0f, %.0f)|r", r*255, g*255, b*255, x * 100, y * 100)) 333c305 < 'text2', string.format(coordStrTemplate, x*100, y*100) --- > 'text2', string.format("%.0f, %.0f", x*100, y*100) 548c520 < local coords = string.format(coordTmplStr, x * 100, y * 100) --- > local coords = string.format("%.0f, %.0f", x * 100, y * 100)