A list of puns related to "Visual Variable"
I'm working on a project with very large 2D vectors which store images. The compilation for this, obviously, takes forever. One image is around 500kb in text. So, I thought I'd use precompiled headers in Visual Studio 2022 to get the compilation time faster.
Sprites.cpp
#include "Sprites.h"
Sprites.h
#pragma once
#include <vector>
namespace Sprites {
#include "Sprites/spr1.hpp"
#include "Sprites/spr2.hpp"
#include ...
}; // namespace Sprites
The sprite files go like this:
std::vector<std::vector<unsigned int>> spr1 = {{0xffffff, 0xf...
win32Platform.cpp (my main file)
#include "Sprites.h"
#include <windows.h>
#include <string>
...
When I try to build this, however, I get this error.
Severity Code Description Project File Line Suppression State
Error LNK2005 "class std::vector<class std::vector<unsigned int,class std::allocator<unsigned int> >,class std::allocator<class std::vector<unsigned int,class std::allocator<unsigned int> > > > Sprites::spr1" (?TrashBag@Sprites@@3V?$vector@V?$vector@IV?$allocator@I@std@@@std@@V?$allocator@V?$vector@IV?$allocator@I@std@@@std@@@2@@std@@A) already defined in win32Platform.obj C:\Users\[username]\source\repos\[project name]\[project name]\Sprites.obj 1
I think I know why this happens, the reason being I include ```Sprites.h``` twice in the project. If this were only a header file, like <vector> it wouldn't cause a problem but since these are variables I can't redefine them. But if I can't do that, how am I supposed to reduce compilation time.
PS- I know I can use an image library and read from the image files, but if I wanted to precompile this, how would I go about doing that?
Hi all,
As title, should this be possible for a button? I can get text feedback to work but not visual, dragging it over does nothing. Other conditions are able to be dragged.
Is this a bug? Can anyone recreate?
Thanks in advance
I'm having an issue regarding Visual Studio Code OneDark Pro theme. I would like to change the color of variables (only variables I declare, not method calls, etc. but when I try to do this using
"editor.tokenColorCustomizations": {
"textMateRules": [
{ "scope": "source.python",
"settings": {
"foreground": "#E06C75"
}
}
]
}
I get this (I wrote a code sample to illustrate what is happening):
https://preview.redd.it/ogzoe5i5rkf71.png?width=319&format=png&auto=webp&s=682e6d45ae1e547285e36e3b99db82dbd3e1a4a5
As you can see, colons are in red, every variables even the "for i in..." and the full "os.system.getcwd()" are in red.
https://preview.redd.it/yqb1xv7irkf71.png?width=299&format=png&auto=webp&s=7ac92687d0c64a671b66fa31d8fc02b54bdd2d05
By default, here is what I have (above). The thing is that I want the variable
I only want the variables I declare to be in red. How can I do that ? Thank you in advance!
I'm getting so frustrated by this problem, which feels like an old inefficiency from the 90s, but tbh I have little to no idea how things behind the curtain work, so here I am asking you guys.
Today I worked with Automapper and got instantly furstrated when it wasn't able to tell me which property it wasn't able to map (list -> string / string -> list but it just indicated the types which it was unable to map, not the property name fml).
Now I'm sitting in front of my computer, due to another bug, completely unmotivated, trying to figure out why Visual Studio can't show me which variable was NULL. I'm in the midst of implementing a new API and trying out to work out OData, and that shit just fails when I make GET request without telling me what exactly is null. Why is this still a thing? Can it be improved upon? I just want to know which variable was NULL or which function returned NULL, I wanna know where the problem happened. Shouldn't this be something the compiler knows? Like, it's literally the reason it stopps, and it it such an infamous problem everybody has. I'm just like, man, really frustrated by this shit. I can't wait for the days where better solutions will by standard for developers.
In the stock Scatter Plot visual, you can have a regression line, or variable bubble size, but not both.
I went through all the scatter plot visuals in Appsource, and couldn't find any that offered both. Most don't even have regression lines, and ones that doo (i.e. Craydec Regression Chart), don't have variable bubble sizes.
Anyone aware of any way to display a regression line, and bubble size? Without going crazy and having 2 charts on top of each other.
I'm using a package 'org-variable-pitch'. I probably don't understand how things are supposed to work, but in order to get variable pitch in the body sections (i.e., stuff that's not a heading or a drawer etc.) you have to setup variable pitch for everything, and then turn it off for everything except the body sections. Why not define a face for those body sections, and set that to variable and leave everything else alone? Why does org define faces for everything except this body text?
Also... I'm trying to use visual-line-mode with these variable-pitch sections. However, when it wraps, it wraps to the start of the new line, instead of to the indent level of the first line. Is there a setting that controls this?
I am used to Spyder but wanted to try Visual Studio Code 1.51.1 with my Anaconda setup on Windows.
I see that VSC can run my Python scripts, so it recognises the Anaconda installation etc.
However, I can't find the variable explorer. Where is it / how do I enable it?
I have been able to find some settings on variable explorer only for Jupyter notebooks; does this mean the variable explorer is available only when using notebooks and not when running scripts outside of a notebook?
I have found documentation on the variable explorer in the context of notebooks, but nothing outside of notebooks, e.g.
https://devblogs.microsoft.com/python/python-in-visual-studio-code-april-2019-release/
I followed HeartBeast's dialogue tutorial and I have been successful in getting the dialogue to work. However, I have no idea how to get a name window to appear for each "page", or string, in the array.
For example, imagine the var dialogue is like this:
var dialogue = ["Hey there.", "What's up?"]
How would I get dialogue[0] to have the name "Emilia" (she being the one speaking, and her name would appear in the name window above the dialogue window), and dialogue[1] to have "Robert"? Like this:
var dialogue = ["[Emilia] Hey there.", "[Robert] What's up?"]
For reference, here's my dialogue script.
extends RichTextLabel
var dialogue = [""]
var page = 0
var timer_length = 5
var dia_timer = 0
func _ready():
set_bbcode(dialogue[page])
set_visible_characters(0)
set_process_input(true)
func _physics_process(delta):
if dia_timer > 0:
dia_timer -= 1
if dia_timer == 0:
set_visible_characters(get_visible_characters() + 1)
dia_timer = timer_length
func _input(event):
if Input.is_action_just_pressed("ui_accept"):
if get_visible_characters() > get_total_character_count():
if page < dialogue.size() - 1:
page += 1
set_bbcode(dialogue[page])
set_visible_characters(0)
else:
page = 0
set_bbcode(dialogue[page])
set_visible_characters(0)
else:
set_visible_characters(get_total_character_count())
Then each NPC has its own RichTextLabel, of which its script extends from the main dialogue script above.
Below is the script for the NPC's dialogue (with the dialogue omitted and replaced with generic dialogue). I would love to have the "Hi" and "How are you" have the NPC's name, and for "I'm doing fine" to have the player's name.
extends "res://dialogue.gd"
onready var dia_window = get_parent()
func talking():
dialogue = ["Hi!",
"How are you?",
"I'm doing fine."]
func _input(event):
if Input.is_action_just_pressed("ui_accept"):
if get_visible_characters() > get_total_character_count():
if page < dialogue.size() - 1:
dia_window.show()
else:
dia_window.hide()
else:
set_visible_characters(get_total_character_count())
Thank you so much for any help!
Hi all. I am coding an application in VB.net and I am trying to get the application to launch a powerpoint file and dynamically populate the slides with predefined content based on a certain variable's value.
My issue is I am not sure how to pass the variable to the VBA in powerpoint. Can anyone assist me? I am coding in Visual Studio, but quite new to it.
The preview of my script setup.
According to the official docs, I should be able to add the script categories for the export variables with this example code:
func _get_property_list():
var properties = []
properties.append(
{
name = "Debug",
type = TYPE_NIL,
usage = PROPERTY_USAGE_CATEGORY | PROPERTY_USAGE_SCRIPT_VARIABLE
}
)
return properties
and the script groups with this example code:
func _get_property_list():
var properties = []
properties.append(
{
name = "Rotate",
type = TYPE_NIL,
hint_string = "rotate_",
usage = PROPERTY_USAGE_GROUP | PROPERTY_USAGE_SCRIPT_VARIABLE
}
)
return properties
However, it doesn't seem to work for me. No matter what I tried, no category or group showed up in the inspector tab at all.
Here is my reproduction project file.
I'm not sure whether this is a bug. Sometimes, I got this error and I can't add any node to the Visual Script's editor at all unless I restart the engine:
The error I got sometimes. I have to restart the engine.
I can report a bug but I want to make sure first that it's not my fault. I am rather new to Godot. Please help. Thanks.
Edit:solved
Just started learning, I'm following some videos on YouTube, so I'll try my best to explain what is going on.
On the tutorials I'm watching, the guy writes for example "string" it starts as light blue, then it turns dark blue, and it becomes "usable" (for the lack of a better word), he writes "int", and again it starts light blue and as soon as he hits space it turns dark blue and works.
If I use string it works normally and in the same way, but when I write "int" it never becomes dark blue and gets a red dash bellow as if I was misspelling it, I know capitalisation matters and all that, if I look for the options visual studio gives me to autocomplete, it shows me Int16, Int32 and Int64, all with capital letters, and int us just not an option.
Does anyone knows what's going on?
Hey everyone!
So I've been trying to make a chart the easily captures three variables. Below is some sample data.
Sales Threshold | Total Sales | Count of Customers |
---|---|---|
$20,000+ | $63,000 | 3 |
$10,000-$19,999 | $22,000 | 2 |
$5,000-$9,999 | $20,000 | 3 |
$1,000-$4,999 | $22,000 | 10 |
So the way to read this chart is your "Sales threshold" is the purchases that exceed a certain value, so for example if Customer A bought $21,000 worth of product they belong in the $20,000+ threshold.
"Total Sales" is the sum of sales that exceed the threshold requirement. For example, if 3 Customers purchased $21,000 worth of product then the "Total Sales would be $63,000.
"Count of Customer" represents the number of customers that meet the sales threshold.
I'm trying to create a visual that captures the impact the number of customers has on the total sales here. To demonstrate, I want to be able to show in a visualization chart that 3 Customers make up about 50% of the sales and they all belong in a $20,000+ threshold. I also need to be able to show that 10 out 18 customers make up only about 17% of the sales and they belong in the $1000-$4,999 bucket. I may have to make more than one chart but I'm looking for the cleanest way to be able to illustrate both points.
Any suggestions y'all may have would be greatly appreciated.
Today, I opened a proposal regarding the ability to search for a function and a variable in Visual Script at the godot-proposals Github.
Here is my proposal #1780.
https://preview.redd.it/p64g8df4jhx51.png?width=1920&format=png&auto=webp&s=14d6bf9bfc6fe7a440c968a7a7b6ec0fd7dabb54
Basically, it's the same text searching ability (ctrl+f) that you had in GDScript which you could use it to search for functions or variables. However, this is for Visual Script.
IMO, this is a very important feature that is currently missing. For anyone who's interesting or thinking that Godot should have this feature, you can show your interest in my proposal #1780.
For example when I need to rename a variable in the TypeScript code I can use rename symbol. I wonder if there's an extension that also renames it in the template.
thx & Happy New Year Eve!
Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.