working
This commit is contained in:
@@ -28,12 +28,10 @@ def get_version_limits():
|
||||
"""Get version-specific limits."""
|
||||
if VERSION_TYPE == "free":
|
||||
return {
|
||||
"max_texture_size": {{MAX_TEXTURE_SIZE}},
|
||||
"max_concurrent_operations": {{MAX_CONCURRENT_OPERATIONS}}
|
||||
}
|
||||
else:
|
||||
return {
|
||||
"max_texture_size": 4096,
|
||||
"max_concurrent_operations": 4
|
||||
}
|
||||
|
||||
@@ -117,9 +115,13 @@ def has_text_fitting():
|
||||
|
||||
|
||||
def get_max_resolution():
|
||||
"""Get maximum texture resolution based on version"""
|
||||
"""Get maximum texture resolution based on version.
|
||||
|
||||
Returns:
|
||||
None if texture resolution is unrestricted, otherwise an integer limit.
|
||||
"""
|
||||
limits = get_version_limits()
|
||||
return limits.get("max_texture_size", 1024)
|
||||
return limits.get("max_texture_size")
|
||||
|
||||
def should_show_feature_lock(feature_name):
|
||||
"""Check if feature lock indicator should be shown."""
|
||||
@@ -157,11 +159,14 @@ def get_feature_availability_text():
|
||||
def get_version_info_details():
|
||||
"""Get detailed version information for display."""
|
||||
limits = get_version_limits()
|
||||
max_texture_size = limits.get('max_texture_size')
|
||||
if not max_texture_size:
|
||||
max_texture_size = 'Unlimited'
|
||||
info = {
|
||||
'version_type': VERSION_TYPE.upper(),
|
||||
'max_texture_size': limits.get('max_texture_size', 'Unlimited'),
|
||||
'max_texture_size': max_texture_size,
|
||||
'max_concurrent_operations': limits.get('max_concurrent_operations', 'Unlimited'),
|
||||
'features_enabled': len(ENABLED_FEATURES),
|
||||
'upgrade_available': is_free_version()
|
||||
}
|
||||
return info
|
||||
return info
|
||||
|
||||
Reference in New Issue
Block a user